API Reference
POST
/api/platform/v1/users

Creates or retrieves a platform user for this app. Returns a user_id, access_token, and refresh_token. Use the access_token as a Bearer token for data endpoints.

Authorization

BasicAuth
AuthorizationBasic <token>

Management endpoints: use client_id as username and client_secret as password.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/platform/v1/users" \  -H "Content-Type: application/json" \  -d '{    "email": "user@example.com"  }'
{
  "user_id": "string",
  "external_user_id": "string",
  "access_token": "string",
  "refresh_token": "string",
  "token_type": "Bearer",
  "expires_in": 0
}
{
  "error": "string",
  "message": "string"
}
{
  "error": "string",
  "message": "string"
}
{
  "error": "string",
  "message": "string"
}