Referenceauth
Generate a new API key
Generate a new API key. The raw key is returned once and never stored.
Accepts an optional body to scope the key to a subset of permissions and/or specific Numbers. An empty body or omitted body produces a backcompat all-permissions key (scopes=NULL, number_ids=NULL).
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://loading/auth/api-keys" \ -H "Content-Type: application/json" \ -d '{}'{
"api_key": "string",
"id": "string",
"prefix": "string",
"created_at": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}