Skip to main content
POST
/
admin
/
api-keys
Mint an API key
curl --request POST \
  --url https://aansi-integration.qode.gg/api/v1/admin/api-keys \
  --header 'Content-Type: application/json' \
  --header 'x-admin-secret: <api-key>' \
  --data '
{
  "name": "tho.nguyen+ansi+recruiter2",
  "userId": "cmookvkba00098tcgmxvs2mup",
  "organizationId": "aansi.com"
}
'
{
  "success": true,
  "data": {
    "id": "8f3a3f2e-6a7d-4b40-9c9a-9b81b8a39c12",
    "name": "tho.nguyen+ansi+recruiter2",
    "prefix": "qint_mJT",
    "userId": "cmookvkba00098tcgmxvs2mup",
    "organizationId": "aansi.com",
    "expiresAt": null,
    "createdAt": "2026-05-19T03:41:00.000Z",
    "plaintext": "qint_mJTqNVL41YK6UqzAojxzbznkCaSfQDRP"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.aansi.qode.world/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-admin-secret
string
header
required

Shared secret configured via the ADMIN_SECRET env var on the service.

Body

application/json
name
string
required

Human-readable label.

userId
string
required

Qode PTP user id this key represents.

organizationId
string
required

Qode PTP organization id this key represents.

expiresAt
string<date-time>

Optional ISO timestamp after which the key stops working.

Response

Key created

success
boolean
Example:

true

data
object