GET
/
v1
/
users
/
{id}
curl --request GET \
  --url https://api.oneofnone.io/v1/users/{id} \
  --header 'x-api-key: <api-key>'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "email": "jsmith@example.com",
  "phone": "<string>",
  "metadata": {},
  "avatar": {
    "alt": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "description": "<string>",
    "file_type": "<string>",
    "id": 123,
    "poster_url": "<string>",
    "size": 123,
    "tags": [
      "<string>"
    ],
    "thumbnail_url": "<string>",
    "updated_at": "2023-11-07T05:31:56Z",
    "url": "<string>"
  },
  "app_id": 123,
  "team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "last_login_at": "2023-11-07T05:31:56Z",
  "login_count": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

x-api-key
string
header
required

The API key required for accessing protected routes. It should be included in the request headers as x-api-key.

Path Parameters

id
string
required

The ID or email address of the user to fetch.

Query Parameters

type
enum<string>
default:ID

Specify whether to query by ID or EMAIL. Defaults to ID if not provided.

Available options:
ID,
EMAIL

Response

200
application/json

Successfully retrieved user.

A user account within the application system, containing profile information and activity tracking.