Skip to main content
POST
Create an API-key connector

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

API-key connector request

api_key
string
required

Provider API key. Stored encrypted and never returned by the API.

Example:

"sk-or-..."

provider
string
required

API-key provider.

Example:

"openrouter"

access_policy
object

Initial access policy. Empty or missing policies deny sprite use until updated.

Example:
base_api_url
string

Required for Upstash Redis: immutable HTTPS database REST URL. Not used by fixed-host providers.

Example:

"https://your-database.upstash.io"

Response

Created

Connector response

connection
object
required

Sanitized connector. Secrets and encrypted token fields are never returned.

Example: