GetMe
Identifies the user account that is currently using an access token. For details about access tokens, see GetToken.
Syntax
Copy
GET <<i>host_address</i>>/api/Authorize/GetMe?access_token=<<i>access_token</i>>
| Parameter | Description |
|---|---|
host_address
|
URL of the FintechOS platform server. |
access_token
|
Access token used to connect to the API endpoint. For details, see GetToken. |
Response
Copy
{
"name": "host",
"id": "4afdc8a9-eb91-4359-81d6-c3a462fae866"
}
| Key | Description |
|---|---|
name
|
Username for the user account that is currently using the access token. |
id
|
System user ID (unique internal identifier) for the user account that is currently using the access token. |
Examples
In this example:
- A user checks the ownership of the 4b947008-5b6c-42d5-aa03-6765b06b6cc4 access token on the https://FintechOSStudio server.
- The server retrurns the user account with the jdoe username and 4afdc8a9-eb91-4359-81d6-c3a462fae866 system user ID.
Request
Copy
GET https://FintechOSStudio/api/Authorize/GetMe?access_token=4b947008-5b6c-42d5-aa03-6765b06b6cc4
Content-Type: application/json
Response
Copy
{
"name": "jdoe",
"id": "4afdc8a9-eb91-4359-81d6-c3a462fae866"
}