Description
You have to call this method when you want to retrieve the personal information of a logged user in DRUID.
To retrieve personal data user must be logged, you must first log user with Login service.
Please, read first https://dru-id.com/developers/apis/oauth-2/ to learn about Oauth2 protocol and the meaning of each token.
Endpoint URL:
GET https://{your-endpoint-domain.com}/activityid/v1/user/me
Request parameters
Parameter | Description | Type | Required |
---|---|---|---|
Authorization | Bearer ${access_token}
Literal text Bearer followed by access_token that is the token for current logged user obtained from login endpoint | string | yes |
Content-Type | application/json | string | yes |
Accept | application/json | string | yes |
From | Id of the entry point | string | yes |
Accept-Language | Language of this request | Locale | no |
Query string parameters
Parameter | Description | Type | Required |
---|---|---|---|
afa | With this parameter you can retrieve all the fields that the user has available to fill in (those that are filled in and those that are not) and the validations of each field. | boolean | false |
Response examples
Response: personal data successfully obtained
Response: personal data successfully obtained with all fields available
Response Codes
Code | Type | Description |
---|---|---|
200 | Success | Personal data successfully obtained. You will get ‘userinfo JSON response’ |
400 | Error | Bad Request: The request could not be understood by the server due to malformed syntax |
401 | Error | Unauthorized: authentication is required and has failed or has not yet been provided (token is invalid, etc) |
404 | Error | Not found: no user has been found associated with this access_token |
428 | Error | Precondition required: User need to configure MFA or needs to send a MFA code. Check the MFA API |
500 | Error | Internal Server Error: The server encountered an unexpected condition which prevented it from fulfilling the request |
504 | Error | Gateway TimeoutService can not contact with oauth server to do some internal operations |