Skip to main content

GET User's Data

Overview


The following table contains important information about the GET method in regards to receiving a user's data.

GET User's Data
MethodGET
URL or Endpoint/api/accounts/users/data
HeadersAuthorization
ParametersprojectId, organizationId
BodyNot applicable.

The description to the parameters is displayed below:

Field NameTypeDescription
projectIdstringThe ID of the project.
organizationIdstringThe ID of the organization.

Request Body

The request does not have a request body.

Response

{
"success": true,
"errors": [],
"messages": [],
"result": {
"user": {
"publicId": "string",
"firstname": "string",
"lastname": "string",
"projectName": null,
"picture": "string",
"email": "string",
"isActive": false,
"role": {
"id": 2,
"name": "string",
"description": null,
"isActive": false,
"organizationId": null
},
"isConfirmed": false,
"defaultOrganizationId": 3
},
"defaultOrganization": {
"publicId": "string",
"isDefault": false,
"name": "string",
"addressLine1": "string",
"addressLine2": "string",
"state": "string",
"country": "string",
"city": "string",
"vatNumber": "string"
},
"defaultProject": {
"publicProjectId": "string",
"name": "string",
"publicOrganizationId": "string",
"orderNumber": 2,
"isDefault": false,
"biskoId": null,
"prebidConfigId": null
}
},
"resultInfo": null,
"statusCode": 200
}
Field NameTypeDescription
successboolIf the response is successful it will return true. Otherwise will return false.
errorsarray[]Indicates if there was an error.
messagesarray[]Returns the response message from back-end.
resultarray[Object]Returns the response object.
userObjectThe user object.
publicIdstringThe public ID of the user.
firstnamestringThe first name of the user.
lastnamestringThe last name of the user.
projectNamestringThe name of the project
picturestringThe URL of the profile picure.
emailstringThe email of the user.
isActiveboolIndicates whether the user is active.
roleObjectThe role object.
idinteger($int32)The ID of the role.
namestringThe name of the role.
descriptionstringThe description of the role.
isActiveboolIndicates whether the role is active.
organizationIdstringThe ID of the organization.
isConfirmedboolIndicates whether the user is confirmed.
defaultOrganizationIdinteger($int32)The ID of the default organization.
defaultOrganizationObjectThe default organization object.
publicIdstringThe public ID of the organization.
isDefaultboolIndicates whether the organization is the default organization.
namestringThe name of the organization.
addressLine1stringThe first address line.
addressLine2stringThe second address line.
statestringThe state.
countrystringThe country.
citystringThe city.
vatNumberstringThe VAT number.
defaultProjectObjectThe default project object.
publicProjectIdstringThe public ID of the project.
namestringThe name of the project.
publicOrganizationIdstringThe public ID of the organization.
orderNumberinteger($int32)The order number.
isDefaultboolIndicates whether the project is the default project.
biskoIdstringThe bisko ID.
prebidConfigIdstringThe ID of the prebid config.
resultInfostringReturns extra information about the result.
statusCodeinteger($int32)Returns the HTTP Status Code.

If the action is successful, the service sends back an HTTP 200 or 201 response.

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code 400: Bad Request

  • HTTP Status Code 401: Unauthorized

  • HTTP Status Code 403: Forbidden

  • HTTP Status Code 404: Result Not Found

  • HTTP Status Code 500: Internal Server Error

  • HTTP Status Code 503: Backend Fetch Failed