Skip to main content
POST
/
v1
/
api-keys
Create API key
curl --request POST \
  --url https://api.mediapi.dev/v1/api-keys \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "name": "production"
}
'
{
  "key": "<string>",
  "name": "<string>"
}

Authorizations

X-API-Key
string
header
required

Body

application/json
name
string
Example:

"production"

Response

201 - application/json

API key created

key
string

The API key — save it now, it cannot be retrieved again

name
string