logo
AdminCreate API Key (Admin)

Create API Key (Admin)

Admin-only endpoint that creates a new API key for a customer. Requires the admin_secret in the request body for authorization. This endpoint does not use the standard x-api-key authentication.

curl -X POST "https://v3-api.texau.com/api/v1/admin/create-key" \
  -H "Content-Type: application/json" \
  -d '{
  "admin_secret": "example_string",
  "name": "Acme Corp",
  "email": "[email protected]"
}'
{
  "customer": "Acme Corp",
  "email": "[email protected]",
  "key_id": "key_abc123",
  "api_key": "txau_live_xxxxxxxxxxxxxxxx"
}
POST
/admin/create-key
POST
Content-Typestring
Required

The media type of the request body

Options: application/json
admin_secretstring
Required

Server-side admin secret for authorization

namestring
Required

Customer name

emailstring
Required

Customer email address

Request Preview
Response

Response will appear here after sending the request

Body

application/json
admin_secretstring
Required

Server-side admin secret for authorization

namestring
Required

Customer name

emailstring
Required

Customer email address

Responses