Reference / Lifecycle

Link a sign-in method to a user.

POST /v1/users/{id}/identities
Secret API key operationId: link_identity

Authorization

Server-to-server. Send a secret key as a Bearer token plus the x-application-id header.

Path parameters

  • id string<uuid> required

    User id

Request body · required

  • credential Value?
  • kind string required
  • password string

    Only for `kind = password`.

  • provider_subject string

Responses

201 Identity linked
{
  "data": {
    "created_at": "2026-01-15T09:30:00Z",
    "id": "018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f",
    "kind": "oauth_google",
    "provider_subject": "string"
  },
  "error": {
    "code": "string",
    "message": "string"
  },
  "meta": {
    "timestamp": "string"
  },
  "success": false
}
404 No such user
409 Method already linked

Request

curl -X POST "http://localhost:8080/v1/users/018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f/identities" \
  -H "Content-Type: application/json" \
  -d '{
  "credential": {},
  "kind": "oauth_google",
  "password": "string",
  "provider_subject": "string"
}'

Try it

live request
POST http://localhost:8080/v1/users/018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f/identities

Path parameters

Request body

application/json