Internal (Ops)
POST
/create-adminCreate 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
| Name | Value |
|---|---|
| Content-Type | application/json |
Body
| Name | Type | Value |
|---|---|---|
| string | admin@example.com | |
| display_name | string | Lodash Admin |
{
"email": "admin@example.com",
"display_name": "Lodash Admin"
}Responses
200200 OK
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
Body
{
"email": null,
"identity_reused": null,
"message": "<string>",
"service_account_id": null,
"uuid": null
}400400 Bad Request
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
Body
{
"error": "<string>"
}409409 Conflict
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
Body
{
"error": "<string>"
}500500 Internal Server Error
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
Body
{
"error": null
}