{"uid":"cap_kQiwUSu37CA-fuZoZqExU","slug":"agentmail-api-key-f8a111a1","name":"AgentMail Delete API Key","description":"Delete API key","url":"https://mpp.api.agentmail.to/v0/api-keys/:api_key?utm_source=zero.xyz","method":"DELETE","headers":{},"bodySchema":{"type":"object","properties":{"limit":{"type":"integer","title":"Limit","description":"Limit of number of items returned."},"ascending":{"type":"boolean","title":"Ascending","description":"Sort in ascending temporal order."},"page_token":{"type":"string","title":"PageToken","description":"Page token for pagination."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["email","inboxes","domains","drafts","threads","webhooks","messaging","ai","social"],"displayCostAmount":"0","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"unprobed","priceSource":"unknown","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"free","summary":"Free","primary":null,"accepted":[]},"paymentMethods":[],"brandName":"AgentMail","brandSlug":"agentmail","brandBaseUrl":"https://agentmail.to","brandDocsUrl":"https://docs.agentmail.to","whatItDoes":"Deletes a specific API key from the AgentMail account, revoking its access permanently.","exampleAgentPrompt":"Delete the AgentMail API key with ID 'ak_abc123xyz' — it may have been compromised and I want to revoke its access immediately.","exampleUseCases":null,"resultDescription":"A confirmation that the specified API key has been deleted and is no longer valid for authenticating requests to AgentMail.","failureModes":["API key not found — returns 404 if the provided api_key identifier does not exist","Unauthorized — returns 401 if the caller lacks permission to delete API keys","Already deleted — the key was previously removed; may return 404 or success depending on idempotency handling","Invalid api_key format — returns 400 if the key identifier is malformed"],"whenToPreferThis":"Use this endpoint when you need to revoke access for a specific AgentMail API key, such as after a key is compromised, when rotating credentials, or when cleaning up unused keys. This is a targeted deletion by key ID and should be preferred over any bulk or account-level revocation when only a single key needs to be removed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T06:42:43.217Z","isFirstParty":false,"canonicalSlug":"agentmail-api-key-f8a111a1"}