Description

You have to call this method when you want to retrieve the personal information of an user in DRUID by his ObjectID.

Please, read first https://dru-id.com/developers/apis/oauth-2/ to learn about Oauth2 protocol and the meaning of each token.

You can consult all the detailed information about user at https://dru-id.com/developers/apis/registration-api/user-info/

Endpoint URL:

 GET https://{your-endpoint-domain.com}/activityid/v1/user/{{objectid}}

Request parameters

ParameterDescriptionTypeRequired
objectidUser ID auto generated by DRUID. Its neccesary to refer to this user in API callsstringyes
AuthorizationBearer ${app_token}

Literal text Bearer followed by app_token that is the token obtained from /oauth2/token endpoint

stringyes
Content-Typeapplication/jsonstringyes
Acceptapplication/jsonstringyes
FromId of the entry pointstringyes
Accept-LanguageLanguage of this requestLocaleno

Query string parameters

ParameterDescriptionTypeRequired
afaWith 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.booleanfalse

Response examples

Response: personal data successfully obtained

Response: personal data successfully obtained with all fields available

Response Codes

CodeTypeDescription
200SuccessPersonal data successfully obtained. You will get ‘userinfo JSON response’
400ErrorBad Request: The request could not be understood by the server due to malformed syntax
401ErrorUnauthorized: authentication is required and has failed or has not yet been provided (token is invalid, etc)
404ErrorNot found: no user has been found associated with this access_token
500ErrorInternal Server Error: The server encountered an unexpected condition which prevented it from fulfilling the request
504ErrorGateway TimeoutService can not contact with oauth server to do some internal operations