Skip to main content

Profiles, keys and connectors

Your agent profiles, your keys for web services and Git hosts, and your connector credentials.

OperationMethod and path
List the connectors you can useGET /api/v1/connectors
Set or replace your credential for a connectorPUT /api/v1/connectors/{name}/credential
Delete your credential for a connectorDELETE /api/v1/connectors/{name}/credential
Reads of your own connector credentialGET /api/v1/connectors/{name}/credential/reads
List the caller's profiles and the shared onesGET /api/v1/profiles
Create a profilePOST /api/v1/profiles
Read a profileGET /api/v1/profiles/{id}
Replace a profilePUT /api/v1/profiles/{id}
Delete a profileDELETE /api/v1/profiles/{id}
List your host keysGET /api/v1/host-keys
Add a host keyPOST /api/v1/host-keys
Change a host keyPUT /api/v1/host-keys/{id}
Delete a host keyDELETE /api/v1/host-keys/{id}
List the shared keys you may useGET /api/v1/host-keys/shared
When a host key was usedGET /api/v1/host-keys/{id}/reads

List the connectors you can use​

GET /api/v1/connectors

The enabled connectors (ADR-0031), with whether you hold your own credential for each that still counts: a credential is bound to the connector's URL origin when you set it. Never a value. Needs a signed-in session.

Sign-in: A signed-in browser session only; an API token is refused with 403 session_required.

Responses

StatusMeaningBody
200The connectorsUserConnectors
401Authentication requiredError
403A personal token cannot read connector credentials (session_required)Error
503Database unavailable or gateway restartingError

Set or replace your credential for a connector​

PUT /api/v1/connectors/{name}/credential

Sealed in the gateway's secret store and sent only by the gateway's MCP proxy; it never enters a sandbox and is never returned. Bound to the connector's current URL origin: if the connector later points elsewhere, it no longer counts. Needs a signed-in session.

Sign-in: A signed-in browser session only; an API token is refused with 403 session_required.

Parameters

NameInRequiredTypeDescription
namepathyesstringThe connector name.

Request body

application/json: NewConnectorCredential

Responses

StatusMeaningBody
204Stored
400Invalid value or bodyError
401Authentication requiredError
403A personal token cannot set connector credentials (session_required)Error
404Unknown or disabled connectorError
409credential_not_used: the connector sends no credentialError
503Database or secret store unavailableError

Delete your credential for a connector​

DELETE /api/v1/connectors/{name}/credential

Deletes the credential and its sealed value; the connector's shared credential applies again. Needs a signed-in session.

Sign-in: A signed-in browser session only; an API token is refused with 403 session_required.

Parameters

NameInRequiredTypeDescription
namepathyesstringThe connector name.

Responses

StatusMeaningBody
204Deleted
401Authentication requiredError
403A personal token cannot delete connector credentials (session_required)Error
404You hold no credential for this connectorError
503Database or secret store unavailableError

Reads of your own connector credential​

GET /api/v1/connectors/{name}/credential/reads

When your own credential for the connector was read, for which conversation and run, newest first; never its value. Needs a signed-in session.

Sign-in: A signed-in browser session only; an API token is refused with 403 session_required.

Parameters

NameInRequiredTypeDescription
namepathyesstringThe connector name.
limitqueryinteger 1–100
beforequerystring (uuid)The next of the previous page.

Responses

StatusMeaningBody
200Newest firstSecretReadPage
400Invalid name, value, version or parameter (see details)Error
401Authentication requiredError
403Not an administrator, or a personal token (session_required)Error
404You hold no credential for this connectorError
503Database unavailable or gateway restartingError

List the caller's profiles and the shared ones​

GET /api/v1/profiles

The caller's own profiles, then the shared ones (ADR-0012). A personal profile is visible to its owner only.

Sign-in: A signed-in session or an API token.

Responses

StatusMeaningBody
200The profilesProfiles
401Authentication requiredError
503Database unavailable or gateway restartingError

Create a profile​

POST /api/v1/profiles

A personal profile, or with shared: true a shared one (administrators; audited without values). Every name it uses must exist now: 422 unknown_reference names the field.

Sign-in: A signed-in session or an API token.

Parameters

NameInRequiredTypeDescription
Idempotency-KeyheaderstringA retried write with the same key replays the stored response.

Request body

application/json: ProfileWrite

Responses

StatusMeaningBody
201CreatedProfile
400Invalid field or body (see details)Error
401Authentication requiredError
403A member asked for a shared profileError
409name_takenError
422unknown_reference (see details), or the Idempotency-Key was used with another requestError
503Database unavailable or gateway restartingError

Read a profile​

GET /api/v1/profiles/{id}

One of the caller's own profiles, or a shared one; anyone else's is 404, administrators included.

Sign-in: A signed-in session or an API token.

Parameters

NameInRequiredTypeDescription
idpathyesstring (uuid)

Responses

StatusMeaningBody
200The profileProfile
401Authentication requiredError
404Not foundError
503Database unavailable or gateway restartingError

Replace a profile​

PUT /api/v1/profiles/{id}

Replaces the version read; sharing never changes. A shared profile is changed by administrators only.

Sign-in: A signed-in session or an API token.

Parameters

NameInRequiredTypeDescription
idpathyesstring (uuid)
Idempotency-KeyheaderstringA retried write with the same key replays the stored response.

Request body

application/json: ProfileWrite

Responses

StatusMeaningBody
200ReplacedProfile
400Invalid field or body (see details)Error
401Authentication requiredError
403A member changing a shared profileError
404Not foundError
409conflict (another version), name_takenError
422unknown_reference (see details), or a reused Idempotency-KeyError
503Database unavailable or gateway restartingError

Delete a profile​

DELETE /api/v1/profiles/{id}

Deletes the version read; conversations made from it keep their copy. A shared profile is deleted by administrators only.

Sign-in: A signed-in session or an API token.

Parameters

NameInRequiredTypeDescription
idpathyesstring (uuid)
versionqueryyesinteger 1 or more

Responses

StatusMeaningBody
204Deleted
401Authentication requiredError
403A member deleting a shared profileError
404Not foundError
409conflict (another version)Error
503Database unavailable or gateway restartingError

List your host keys​

GET /api/v1/host-keys

Your own keys (ADR-0037), by name; never a value. Needs a signed-in session.

Sign-in: A signed-in browser session only; an API token is refused with 403 session_required.

Responses

StatusMeaningBody
200Your keysHostKeys
401Authentication requiredError
403Origin denied, or session_required with a personal tokenError

Add a host key​

POST /api/v1/host-keys

Adds one of your own keys. Refusals: 400 with details (address_not_https, address_not_plain, host_invalid, name_invalid, name_reserved, scheme_not_supported, value_empty, value_too_long, value_nul, value_invalid, body_invalid), 409 name_taken (details taken_by: the key that has it), 409 host_key_limit. Audited.

Sign-in: A signed-in browser session only; an API token is refused with 403 session_required.

Parameters

NameInRequiredTypeDescription
Idempotency-KeyheaderstringA retried write with the same key replays the stored response.

Request body

application/json: HostKeyAdd

Responses

StatusMeaningBody
201AddedHostKey
400Invalid field (see details)Error
401Authentication requiredError
403Origin denied, or session_required with a personal tokenError
409name_taken or host_key_limitError
422Idempotency-Key reused with another requestError

Change a host key​

PUT /api/v1/host-keys/{id}

The whole item at the version read; the value only when replacing it. Refusals as for adding, plus 409 conflict for a stale version. Audited.

Sign-in: A signed-in browser session only; an API token is refused with 403 session_required.

Parameters

NameInRequiredTypeDescription
idpathyesstring (uuid)
Idempotency-KeyheaderstringA retried write with the same key replays the stored response.

Request body

application/json: HostKeyPut

Responses

StatusMeaningBody
200ChangedHostKey
400Invalid field (see details)Error
401Authentication requiredError
403Origin denied, or session_required with a personal tokenError
404Not one of your keysError
409conflict or name_takenError
422Idempotency-Key reused with another requestError

Delete a host key​

DELETE /api/v1/host-keys/{id}

Deletes one of your own keys and its value, at the version read. Audited.

Sign-in: A signed-in browser session only; an API token is refused with 403 session_required.

Parameters

NameInRequiredTypeDescription
idpathyesstring (uuid)
versionqueryyesinteger 1 or more
Idempotency-KeyheaderstringA retried write with the same key replays the stored response.

Responses

StatusMeaningBody
204Deleted
400Invalid versionError
401Authentication requiredError
403Origin denied, or session_required with a personal tokenError
404Not one of your keysError
409conflictError
422Idempotency-Key reused with another requestError

List the shared keys you may use​

GET /api/v1/host-keys/shared

Names, addresses and schemes; never who else may use them, and your own last use only. Needs a signed-in session.

Sign-in: A signed-in browser session only; an API token is refused with 403 session_required.

Responses

StatusMeaningBody
200The shared keys you may useHostKeys
401Authentication requiredError
403Not an administrator, origin denied, or session_required with a personal tokenError

When a host key was used​

GET /api/v1/host-keys/{id}/reads

Uses of one of your own keys, or your own uses of a shared key you may use, with refusals; never whose (ADR-0037 §8). Needs a signed-in session.

Sign-in: A signed-in browser session only; an API token is refused with 403 session_required.

Parameters

NameInRequiredTypeDescription
idpathyesstring (uuid)
limitqueryinteger 1–100
beforequerystring (uuid)

Responses

StatusMeaningBody
200Reads, newest firstSecretReadPage
400Invalid pagingError
401Authentication requiredError
403Origin denied or session_requiredError
404Not a key you own or may useError