Skip to main content
POST

Authorizations

x-portkey-api-key
string
header
required

Path Parameters

type
enum<string>
required
Available options:
organisation,
workspace
sub-type
enum<string>
required
Available options:
user,
service

Body

application/json
name
string
Example:

"Development API Key"

description
string
Example:

"API key for development environment"

workspace_id
string
Example:

"ws-myworkspace"

user_id
string<uuid>

Required when sub-type path parameter is 'user'. Not required when sub-type is 'service'.

Example:

"c3d4e5f6-a7b8-6c7d-0e1f-2a3b4c5d6e7f"

rate_limits
object[]
usage_limits
object
Example:
scopes
string[]
Example:
defaults
object
alert_emails
string<email>[]
expires_at
string<date-time>

Response

200 - application/json

OK

id
string<uuid>
Example:

"183f497a-2a7f-4f47-992e-26213fa863we"

key
string
Example:

"abssofjosfjs"

object
enum<string>
Available options:
api-key
Example:

"api-key"

Last modified on February 17, 2026