Skip to content

Add api_key credentials and the proxy endpoints to the API reference - #375

Merged
replicas-connector[bot] merged 1 commit into
mainfrom
claude/credentials-proxy-api-key
Nov 24, 2026
Merged

replicas-connector[bot] merged 1 commit into
mainfrom
claude/credentials-proxy-api-key

Conversation

@replicas-connector

Copy link
Copy Markdown
Contributor

Adds what agentmail-api#2141 added to Agent Vault's credentials API. As in #372, this covers only endpoint and type definitions, with no descriptions or examples.

New endpoints

Method Path
POST /credentials/{credential_id}/proxy
POST /pods/{pod_id}/credentials/{credential_id}/proxy
POST /inboxes/{inbox_id}/credentials/{credential_id}/proxy

Request: method (GET, POST, PUT, PATCH, DELETE), url, headers, body. Response: status, headers, body, body_encoding (utf8 or base64).

New credential type: api_key

  • api_key added to CredentialType.
  • Create body CreateApiKeyCredential with origin, value, auth and expires_at. Rotate body RotateApiKeyCredential with value and expires_at.
  • auth (ApiKeyAuth, a union on in): header with name and optional prefix, or query with name. It's added to the credential response, too.

The definition now has all 33 credential routes on agentmail-api main, matched against infra/agentmail/regional/routes.ts.

Merge after the next production deploy: the last production deploy predates agentmail-api#2141, so the proxy routes and api_key type aren't live yet.

Checks: fern check reports 0 errors. The Python and TypeScript SDKs generate locally with proxy on all three credentials clients. Python names the in field in_ and sends it as in.

🤖 Generated with Claude Code


Created by Haakam Aujla (haakam@agentmail.cc) with Replicas

Replicas Workspace

Co-Authored-By: Haakam Aujla 52901662+Haakam21@users.noreply.github.com
Co-Authored-By: replicas-connector[bot] <replicas-connector[bot]@users.noreply.github.com>

agentmail-api #2141 adds the api_key credential type, with its auth
placement, and POST .../credentials/{credential_id}/proxy under the
organization, a pod and an inbox.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Haakam Aujla <52901662+Haakam21@users.noreply.github.com>
Co-Authored-By: replicas-connector[bot] <replicas-connector[bot]@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

📋 View the side-by-side API change review

The link expires in 7 days.

🔒 Your API specs are encrypted in CI before they're uploaded. The decryption key stays in this link's URL fragment (after the #), which browsers never send to a server, so oasdiff cannot read your specs. How it works →

Posted automatically by the oasdiff GitHub Action. To turn this off (no spec upload, no comment), set review: false on the action.

@github-actions

Copy link
Copy Markdown

✨ API Changes

# API Changelog n/a vs. n/a


## API Changes

### GET /v0/credentials
- :warning: added the new `api_key` enum value to the `credentials/items/type` response property for the response status `200`
-  added the optional property `credentials/items/auth` to the response with the `200` status


### POST /v0/credentials
- :warning: added the new `api_key` enum value to the `allOf[subschema #1: CredentialItem]/type` response property for the response status `200`
-  added `subschema #5` to the request body `oneOf` list
-  added the optional property `allOf[subschema #1: CredentialItem]/auth` to the response with the `200` status


### POST /v0/credentials/register
- :warning: added the new `api_key` enum value to the `credential/allOf[subschema #1: CredentialItem]/type` response property for the response status `200`
-  added the optional property `credential/allOf[subschema #1: CredentialItem]/auth` to the response with the `200` status


### GET /v0/credentials/{credential_id}
- :warning: added the new `api_key` enum value to the `allOf[subschema #1: CredentialItem]/type` response property for the response status `200`
-  added the optional property `allOf[subschema #1: CredentialItem]/auth` to the response with the `200` status


### PATCH /v0/credentials/{credential_id}
- :warning: added the new `api_key` enum value to the `allOf[subschema #1: CredentialItem]/type` response property for the response status `200`
-  added the optional property `allOf[subschema #1: CredentialItem]/auth` to the response with the `200` status


### POST /v0/credentials/{credential_id}/proxy
-  endpoint added


### POST /v0/credentials/{credential_id}/rotate
- :warning: added the new `api_key` enum value to the `allOf[subschema #1: CredentialItem]/type` response property for the response status `200`
-  added `subschema #5` to the request body `oneOf` list
-  added the optional property `allOf[subschema #1: CredentialItem]/auth` to the response with the `200` status


### GET /v0/inboxes/{inbox_id}/credentials
- :warning: added the new `api_key` enum value to the `credentials/items/type` response property for the response status `200`
-  added the optional property `credentials/items/auth` to the response with the `200` status


### POST /v0/inboxes/{inbox_id}/credentials
- :warning: added the new `api_key` enum value to the `allOf[subschema #1: CredentialItem]/type` response property for the response status `200`
-  added `subschema #5` to the request body `oneOf` list
-  added the optional property `allOf[subschema #1: CredentialItem]/auth` to the response with the `200` status


### POST /v0/inboxes/{inbox_id}/credentials/register
- :warning: added the new `api_key` enum value to the `credential/allOf[subschema #1: CredentialItem]/type` response property for the response status `200`
-  added the optional property `credential/allOf[subschema #1: CredentialItem]/auth` to the response with the `200` status


### GET /v0/inboxes/{inbox_id}/credentials/{credential_id}
- :warning: added the new `api_key` enum value to the `allOf[subschema #1: CredentialItem]/type` response property for the response status `200`
-  added the optional property `allOf[subschema #1: CredentialItem]/auth` to the response with the `200` status


### PATCH /v0/inboxes/{inbox_id}/credentials/{credential_id}
- :warning: added the new `api_key` enum value to the `allOf[subschema #1: CredentialItem]/type` response property for the response status `200`
-  added the optional property `allOf[subschema #1: CredentialItem]/auth` to the response with the `200` status


### POST /v0/inboxes/{inbox_id}/credentials/{credential_id}/proxy
-  endpoint added


### POST /v0/inboxes/{inbox_id}/credentials/{credential_id}/rotate
- :warning: added the new `api_key` enum value to the `allOf[subschema #1: CredentialItem]/type` response property for the response status `200`
-  added `subschema #5` to the request body `oneOf` list
-  added the optional property `allOf[subschema #1: CredentialItem]/auth` to the response with the `200` status


### GET /v0/pods/{pod_id}/credentials
- :warning: added the new `api_key` enum value to the `credentials/items/type` response property for the response status `200`
-  added the optional property `credentials/items/auth` to the response with the `200` status


### POST /v0/pods/{pod_id}/credentials
- :warning: added the new `api_key` enum value to the `allOf[subschema #1: CredentialItem]/type` response property for the response status `200`
-  added `subschema #5` to the request body `oneOf` list
-  added the optional property `allOf[subschema #1: CredentialItem]/auth` to the response with the `200` status


### POST /v0/pods/{pod_id}/credentials/register
- :warning: added the new `api_key` enum value to the `credential/allOf[subschema #1: CredentialItem]/type` response property for the response status `200`
-  added the optional property `credential/allOf[subschema #1: CredentialItem]/auth` to the response with the `200` status


### GET /v0/pods/{pod_id}/credentials/{credential_id}
- :warning: added the new `api_key` enum value to the `allOf[subschema #1: CredentialItem]/type` response property for the response status `200`
-  added the optional property `allOf[subschema #1: CredentialItem]/auth` to the response with the `200` status


### PATCH /v0/pods/{pod_id}/credentials/{credential_id}
- :warning: added the new `api_key` enum value to the `allOf[subschema #1: CredentialItem]/type` response property for the response status `200`
-  added the optional property `allOf[subschema #1: CredentialItem]/auth` to the response with the `200` status


### POST /v0/pods/{pod_id}/credentials/{credential_id}/proxy
-  endpoint added


### POST /v0/pods/{pod_id}/credentials/{credential_id}/rotate
- :warning: added the new `api_key` enum value to the `allOf[subschema #1: CredentialItem]/type` response property for the response status `200`
-  added `subschema #5` to the request body `oneOf` list
-  added the optional property `allOf[subschema #1: CredentialItem]/auth` to the response with the `200` status

💡 Download api-changelog-diff artifact or tag @fern Writer in #github-prs for changelog.

@replicas-connector
replicas-connector Bot merged commit c29567f into main Nov 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant