Agent Registrations
Agent registrations bound to the organization.
| Method | Path | Summary |
|---|---|---|
GET | /v0/agent-registrations | List Agent Registrations |
GET | /v0/agent-registrations/{agent_id} | Get Agent Registration |
DELETE | /v0/agent-registrations/{agent_id} | Revoke Agent Registration |
List Agent Registrations
Agent registrations bound to the organization. Requires an organization-scoped credential with api_key_read; pod, inbox and sandbox credentials get 403.
Authentication: Authorization: Bearer <api key> or the dashboard mm_session cookie. Permission: api_key_read.
Query parameters
limitintegerpage_tokenstringascendingbooleanstatus"pending_claim" | "claimed" | "revoked"Response
200 A page of registrations (application/json)
countintegerRequiredlimitintegernext_page_tokenstringEach item of agent_registrations is a AgentRegistration:
agent_idstringRequiredregistration_idstringRequiredregistration_type"anonymous" | "service_auth" | "identity_assertion"Requiredstatus"pending_claim" | "claimed" | "revoked"Requirednamestringclientstringorganization_idstringinbox_idstringemailstringissuerstringagent_platformstringcreated_atstring (date-time)Requiredclaimed_atstring (date-time)revoked_atstring (date-time)expires_atstring (date-time)Errors
| Status | Meaning |
|---|---|
400 | Invalid request: error.type is validation and error.param names the field. |
401 | Missing, invalid, expired or revoked credential. |
403 | The credential lacks the permission or scope for this request (error.type forbidden), or MachineMail suspended the organization or its sending (account_suspended: error.message says what still works; do not retry or re-register). |
500 | Unexpected server error. |
Error bodies use the error envelope.
Example
Get Agent Registration
Requires an organization-scoped credential with api_key_read.
Authentication: Authorization: Bearer <api key> or the dashboard mm_session cookie. Permission: api_key_read.
Path parameters
agent_idstringRequiredResponse
200 The registration (application/json)
agent_idstringRequiredregistration_idstringRequiredregistration_type"anonymous" | "service_auth" | "identity_assertion"Requiredstatus"pending_claim" | "claimed" | "revoked"Requirednamestringclientstringorganization_idstringinbox_idstringemailstringissuerstringagent_platformstringcreated_atstring (date-time)Requiredclaimed_atstring (date-time)revoked_atstring (date-time)expires_atstring (date-time)Errors
| Status | Meaning |
|---|---|
401 | Missing, invalid, expired or revoked credential. |
403 | The credential lacks the permission or scope for this request (error.type forbidden), or MachineMail suspended the organization or its sending (account_suspended: error.message says what still works; do not retry or re-register). |
404 | Not found. Also returned for resources outside the credential scope. |
500 | Unexpected server error. |
Error bodies use the error envelope.
Example
Revoke Agent Registration
Revokes the registration; its tokens stop working immediately. Returns the registration with status: revoked (revoking twice is not an error). Requires an organization-scoped credential with api_key_delete.
Authentication: Authorization: Bearer <api key> or the dashboard mm_session cookie. Permission: api_key_delete.
Path parameters
agent_idstringRequiredResponse
200 The revoked registration (application/json)
agent_idstringRequiredregistration_idstringRequiredregistration_type"anonymous" | "service_auth" | "identity_assertion"Requiredstatus"pending_claim" | "claimed" | "revoked"Requirednamestringclientstringorganization_idstringinbox_idstringemailstringissuerstringagent_platformstringcreated_atstring (date-time)Requiredclaimed_atstring (date-time)revoked_atstring (date-time)expires_atstring (date-time)Errors
| Status | Meaning |
|---|---|
401 | Missing, invalid, expired or revoked credential. |
403 | The credential lacks the permission or scope for this request (error.type forbidden), or MachineMail suspended the organization or its sending (account_suspended: error.message says what still works; do not retry or re-register). |
404 | Not found. Also returned for resources outside the credential scope. |
500 | Unexpected server error. |
Error bodies use the error envelope.