Profiles, keys and connectors
Your agent profiles, your keys for web services and Git hosts, and your connector credentials.
| Operation | Method and path |
|---|---|
| List the connectors you can use | GET /api/v1/connectors |
| Set or replace your credential for a connector | PUT /api/v1/connectors/{name}/credential |
| Delete your credential for a connector | DELETE /api/v1/connectors/{name}/credential |
| Reads of your own connector credential | GET /api/v1/connectors/{name}/credential/reads |
| List the caller's profiles and the shared ones | GET /api/v1/profiles |
| Create a profile | POST /api/v1/profiles |
| Read a profile | GET /api/v1/profiles/{id} |
| Replace a profile | PUT /api/v1/profiles/{id} |
| Delete a profile | DELETE /api/v1/profiles/{id} |
| List your host keys | GET /api/v1/host-keys |
| Add a host key | POST /api/v1/host-keys |
| Change a host key | PUT /api/v1/host-keys/{id} |
| Delete a host key | DELETE /api/v1/host-keys/{id} |
| List the shared keys you may use | GET /api/v1/host-keys/shared |
| When a host key was used | GET /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
| Status | Meaning | Body |
|---|---|---|
| 200 | The connectors | UserConnectors |
| 401 | Authentication required | Error |
| 403 | A personal token cannot read connector credentials (session_required) | Error |
| 503 | Database unavailable or gateway restarting | Error |
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
| Name | In | Required | Type | Description |
|---|---|---|---|---|
name | path | yes | string | The connector name. |
Request body
application/json: NewConnectorCredential
Responses
| Status | Meaning | Body |
|---|---|---|
| 204 | Stored | |
| 400 | Invalid value or body | Error |
| 401 | Authentication required | Error |
| 403 | A personal token cannot set connector credentials (session_required) | Error |
| 404 | Unknown or disabled connector | Error |
| 409 | credential_not_used: the connector sends no credential | Error |
| 503 | Database or secret store unavailable | Error |
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
| Name | In | Required | Type | Description |
|---|---|---|---|---|
name | path | yes | string | The connector name. |
Responses
| Status | Meaning | Body |
|---|---|---|
| 204 | Deleted | |
| 401 | Authentication required | Error |
| 403 | A personal token cannot delete connector credentials (session_required) | Error |
| 404 | You hold no credential for this connector | Error |
| 503 | Database or secret store unavailable | Error |
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
| Name | In | Required | Type | Description |
|---|---|---|---|---|
name | path | yes | string | The connector name. |
limit | query | integer 1–100 | ||
before | query | string (uuid) | The next of the previous page. |
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Newest first | SecretReadPage |
| 400 | Invalid name, value, version or parameter (see details) | Error |
| 401 | Authentication required | Error |
| 403 | Not an administrator, or a personal token (session_required) | Error |
| 404 | You hold no credential for this connector | Error |
| 503 | Database unavailable or gateway restarting | Error |
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
| Status | Meaning | Body |
|---|---|---|
| 200 | The profiles | Profiles |
| 401 | Authentication required | Error |
| 503 | Database unavailable or gateway restarting | Error |
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
| Name | In | Required | Type | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | A retried write with the same key replays the stored response. |
Request body
application/json: ProfileWrite
Responses
| Status | Meaning | Body |
|---|---|---|
| 201 | Created | Profile |
| 400 | Invalid field or body (see details) | Error |
| 401 | Authentication required | Error |
| 403 | A member asked for a shared profile | Error |
| 409 | name_taken | Error |
| 422 | unknown_reference (see details), or the Idempotency-Key was used with another request | Error |
| 503 | Database unavailable or gateway restarting | Error |
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
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string (uuid) |
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | The profile | Profile |
| 401 | Authentication required | Error |
| 404 | Not found | Error |
| 503 | Database unavailable or gateway restarting | Error |
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
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string (uuid) | |
Idempotency-Key | header | string | A retried write with the same key replays the stored response. |
Request body
application/json: ProfileWrite
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Replaced | Profile |
| 400 | Invalid field or body (see details) | Error |
| 401 | Authentication required | Error |
| 403 | A member changing a shared profile | Error |
| 404 | Not found | Error |
| 409 | conflict (another version), name_taken | Error |
| 422 | unknown_reference (see details), or a reused Idempotency-Key | Error |
| 503 | Database unavailable or gateway restarting | Error |
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
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string (uuid) | |
version | query | yes | integer 1 or more |
Responses
| Status | Meaning | Body |
|---|---|---|
| 204 | Deleted | |
| 401 | Authentication required | Error |
| 403 | A member deleting a shared profile | Error |
| 404 | Not found | Error |
| 409 | conflict (another version) | Error |
| 503 | Database unavailable or gateway restarting | Error |
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
| Status | Meaning | Body |
|---|---|---|
| 200 | Your keys | HostKeys |
| 401 | Authentication required | Error |
| 403 | Origin denied, or session_required with a personal token | Error |
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
| Name | In | Required | Type | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | A retried write with the same key replays the stored response. |
Request body
application/json: HostKeyAdd
Responses
| Status | Meaning | Body |
|---|---|---|
| 201 | Added | HostKey |
| 400 | Invalid field (see details) | Error |
| 401 | Authentication required | Error |
| 403 | Origin denied, or session_required with a personal token | Error |
| 409 | name_taken or host_key_limit | Error |
| 422 | Idempotency-Key reused with another request | Error |
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
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string (uuid) | |
Idempotency-Key | header | string | A retried write with the same key replays the stored response. |
Request body
application/json: HostKeyPut
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Changed | HostKey |
| 400 | Invalid field (see details) | Error |
| 401 | Authentication required | Error |
| 403 | Origin denied, or session_required with a personal token | Error |
| 404 | Not one of your keys | Error |
| 409 | conflict or name_taken | Error |
| 422 | Idempotency-Key reused with another request | Error |
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
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string (uuid) | |
version | query | yes | integer 1 or more | |
Idempotency-Key | header | string | A retried write with the same key replays the stored response. |
Responses
| Status | Meaning | Body |
|---|---|---|
| 204 | Deleted | |
| 400 | Invalid version | Error |
| 401 | Authentication required | Error |
| 403 | Origin denied, or session_required with a personal token | Error |
| 404 | Not one of your keys | Error |
| 409 | conflict | Error |
| 422 | Idempotency-Key reused with another request | Error |
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
| Status | Meaning | Body |
|---|---|---|
| 200 | The shared keys you may use | HostKeys |
| 401 | Authentication required | Error |
| 403 | Not an administrator, origin denied, or session_required with a personal token | Error |
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
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string (uuid) | |
limit | query | integer 1–100 | ||
before | query | string (uuid) |
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Reads, newest first | SecretReadPage |
| 400 | Invalid paging | Error |
| 401 | Authentication required | Error |
| 403 | Origin denied or session_required | Error |
| 404 | Not a key you own or may use | Error |