Skip to main content
POST
Add an allowed origin to an API key

Authorizations

Authorization
string
header
required

Headers

Accept
enum<string>
required

Accept Header

Available options:
application/json

Path Parameters

KeyId
string
required

Query Parameters

Origin
string

Body

application/json

Add an allowed browser Origin (CORS) to an API key. Provide a full absolute origin โ€” scheme, host and (non-default) port โ€” e.g. https://app.example.com. Origins are matched exactly, so register each distinct origin you call the API from. For local development, add your dev server's localhost origin (e.g. http://localhost:3000); the scheme and port must match exactly (http://localhost:3000 is different from https://localhost:3000 and from http://localhost:5173). KeyId comes from the route; Origin is the body.

KeyId
string
Origin
string

Response

The key's allowed origins, including the one just added.