Retrieve a User

Fetches a single dashboard user by ID, returning their current profile.

Request Headers

HeaderRequiredDescription
AuthorizationYesBearer YOUR_ACCESS_TOKEN

Request Parameters

Path Parameters:

ParameterTypeRequiredDescription
location_idintegerYesLocation the user belongs to.
user_idintegerYesID of the user to retrieve.

This endpoint takes no request body.

Request Example

No body is sent.

cURL Example

curl --request GET \
  --url https://sandbox-api.softpoint.io/interface/v1/locations/4004699/users/94 \
  --header "Authorization: Bearer YOUR_ACCESS_TOKEN"

Success Response

{
  "id": 94,
  "first_name": "Test User",
  "last_name": "Doe",
  "phone": "+1 (123) 456-7898",
  "email": "[email protected]",
  "global_country_id": 3,
  "created_datetime": "2023-03-07T19:05:52.000000Z"
}

Response Fields

FieldTypeDescription
idintegerThe user's ID.
first_namestringFirst name.
last_namestringLast name.
phonestringNormalized phone number, or null if none.
emailstringEmail address.
global_country_idintegerAssociated country.
created_datetimestring (ISO 8601)Creation timestamp.

Error Responses

User Not Found

{
  "error": {
    "code": 10201,
    "message": "The selected user doesn't exist.",
    "details": null
  }
}

Status Codes

CodeDescription
200User returned
404User does not exist

Workflow Placement

A read operation used any time after a user has been created.

Notes

  • The user_id is supplied as a path parameter; no request body is required.

Common Mistakes

  • Passing the user ID in the body instead of the path.

  • Requesting an ID that does not exist (returns 10201).

Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json