Repository navigation
Add api_key credentials and the proxy endpoints to the API reference - #375
Merged
Merged
Conversation
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>
📋 View the side-by-side API change reviewThe 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 |
✨ 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 |
Haakam21
approved these changes
Nov 24, 2026
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
/credentials/{credential_id}/proxy/pods/{pod_id}/credentials/{credential_id}/proxy/inboxes/{inbox_id}/credentials/{credential_id}/proxyRequest:
method(GET,POST,PUT,PATCH,DELETE),url,headers,body. Response:status,headers,body,body_encoding(utf8orbase64).New credential type:
api_keyapi_keyadded toCredentialType.CreateApiKeyCredentialwithorigin,value,authandexpires_at. Rotate bodyRotateApiKeyCredentialwithvalueandexpires_at.auth(ApiKeyAuth, a union onin):headerwithnameand optionalprefix, orquerywithname. It's added to the credential response, too.The definition now has all 33 credential routes on agentmail-api
main, matched againstinfra/agentmail/regional/routes.ts.Merge after the next production deploy: the last production deploy predates agentmail-api#2141, so the proxy routes and
api_keytype aren't live yet.Checks:
fern checkreports 0 errors. The Python and TypeScript SDKs generate locally withproxyon all three credentials clients. Python names theinfieldin_and sends it asin.🤖 Generated with Claude Code
Co-Authored-By: Haakam Aujla 52901662+Haakam21@users.noreply.github.com
Co-Authored-By: replicas-connector[bot] <replicas-connector[bot]@users.noreply.github.com>