Create an end-user identity for Forward API usage.
HTTP 201 Created
Request headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <PAT> |
Content-Type | Yes | application/json |
Idempotency-Key | No | Optional idempotency key for unsafe requests. |
Request body
| Parameter | Type | Required | Description |
|---|---|---|---|
external_id | string | Yes | End-user ID from the integrator's system. Must not be empty or whitespace only. |
name | string | No | Display name. If provided, must not be empty or whitespace-only. |
enabled | boolean | No | Whether this identity can be used. Defaults to true. |
metadata | object | No | Custom metadata. Recommended maximum 16 keys. |
Example request
Example response
HTTP 201 Created
Response fields
| Field | Type | Description |
|---|---|---|
id | string | Forward Identity ID. Recommended prefix is idn_. |
external_id | string | End-user ID from the integrator's system. |
name | string | Display name. |
enabled | boolean | Whether the Identity can be used for new operations. |
metadata | object | Custom metadata. |
created_at | string | Creation timestamp. |
updated_at | string | Update timestamp. |
Errors
| HTTP | Type | Trigger |
|---|---|---|
| 400 | invalid_request_error | Missing or invalid external_id, name, or metadata. |
| 401 | TOKEN_INVALID | PAT invalid or expired. The response body includes a message field (for example, invalid pt-token). |
| 409 | conflict_error | Identity conflicts with an existing record. |
Notes
- Identity is not a Qoder login account or IAM user.
- The integrator remains responsible for authenticating the real end user.