Paycose Docs
Internal (Ops)
POST/create-admin

Create Create Admin

Provision an admin identity + service account. Internal ops app (port 5002, no api_version, guarded by the internal token header).

Request

Example

curl -X POST '{{internal_base_url}}/create-admin' \
  -H 'Content-Type: application/json' \
  -d '{
  "email": "admin@example.com",
  "display_name": "Lodash Admin"
}'

Headers

NameValue
Content-Typeapplication/json

Body

NameTypeValue
emailstringadmin@example.com
display_namestringLodash Admin
{
  "email": "admin@example.com",
  "display_name": "Lodash Admin"
}

Responses

200200 OK

Headers

NameValue
Content-Typeapplication/json

Body

{
  "email": null,
  "identity_reused": null,
  "message": "<string>",
  "service_account_id": null,
  "uuid": null
}
400400 Bad Request

Headers

NameValue
Content-Typeapplication/json

Body

{
  "error": "<string>"
}
409409 Conflict

Headers

NameValue
Content-Typeapplication/json

Body

{
  "error": "<string>"
}
500500 Internal Server Error

Headers

NameValue
Content-Typeapplication/json

Body

{
  "error": null
}

On this page