Skip to content

Create Api Key

POST
/v1/api-keys
curl --request POST \
--url https://api.supposing.app/v1/api-keys \
--header 'Content-Type: application/json' \
--data '{ "name": "example" }'
Media typeapplication/json
ApiKeyIn
object
name
required
Name
string
>= 1 characters <= 100 characters

Example generated

{
"name": "example"
}

Successful Response

Media typeapplication/json
ApiKeyCreated
object
id
required
Id
string format: uuid
name
required
Name
string
prefix
required
Prefix
string
created_at
required
Created At
string format: date-time
last_used_at
required
Last Used At
Any of:
string format: date-time
key
required
Key

Shown once. Store it now.

string

Example generated

{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"prefix": "example",
"created_at": "2026-04-15T12:00:00Z",
"last_used_at": "2026-04-15T12:00:00Z",
"key": "example"
}

Client error. Branch on code; show message and hint.

Media typeapplication/json
Error

The body of every non-2xx response.

object
code
required
Code

Stable machine-readable code, e.g. dataset_not_found.

string
message
required
Message
string
hint
Hint

What to do next.

Any of:
string
details
Details

Per-field problems, for invalid_request.

Any of:
Array<object>
ErrorDetail
object
field
required
Field

Dotted path to the field, e.g. ranking.rubric.

string
message
required
Message
string

Example generated

{
"code": "example",
"message": "example",
"hint": "example",
"details": [
{
"field": "example",
"message": "example"
}
]
}

Server error.

Media typeapplication/json
Error

The body of every non-2xx response.

object
code
required
Code

Stable machine-readable code, e.g. dataset_not_found.

string
message
required
Message
string
hint
Hint

What to do next.

Any of:
string
details
Details

Per-field problems, for invalid_request.

Any of:
Array<object>
ErrorDetail
object
field
required
Field

Dotted path to the field, e.g. ranking.rubric.

string
message
required
Message
string

Example generated

{
"code": "example",
"message": "example",
"hint": "example",
"details": [
{
"field": "example",
"message": "example"
}
]
}