Create a new API key
Changed onCreate a new API key for the organization
Request
- Base URLhttps://gateway.prem.io
- AuthHTTP bearer
Request body
Example request
{
"label": "Development API Key",
"description": "Key for development environment",
"scopes": [
"api_keys.read"
],
"ip_allow_list": [
"192.168.1.1",
"10.0.0.1"
],
"expires_at": "2025-12-31 23:59:59"
}Response
Successful API key creation response
Example response
{
"data": {
"id": "api_key_0197c0ec-a197-719f-84a9-99270a79b42a",
"secret": "sk_live_MDFhMTkzNDctNmEyYS03YTMyLTllNTktZWU1MjA3NGY5ZGIxX3BjY2k",
"scopes": [
"api_keys.read"
],
"ip_allow_list": [
"127.0.0.1"
],
"label": "Development API Key",
"description": "Key for development environment",
"expires_at": "2026-05-30 20:23:16",
"created_at": "2025-06-30 15:00:22",
"updated_at": null
},
"message": null
}Changes
- breaking
the
request property's minLength was increased from0to1 - warning
added the new
405.00enum value to the/response property for the response status - warning
added the new
405.00enum value to the/response property for the response status - warning
added the new
405.00enum value to theresponse property for the response status - warning
added the new
409.00enum value to the/response property for the response status - warning
added the new
409.00enum value to the/response property for the response status - warning
added the new
409.00enum value to theresponse property for the response status - warning
added the new
500.00enum value to the/response property for the response status - warning
added the new
500.00enum value to the/response property for the response status - warning
added the new
500.00enum value to theresponse property for the response status - info
removed the
BALANCEenum value from the/////response property for the response status - info
removed the
PLANenum value from the/////response property for the response status
- breaking
- info
endpoint added
- info