Agent identity token
cooper_identity_tokenUse this when a third-party service should confirm which Cooper inbox this agent controls, without an email round trip. Requires auth and message_send. Inputs: inbox_id (required unless this key is limited to one inbox; inbox id, username, or email), audience (required; an https origin or an absolute URI, at most 255 characters), ttl_seconds (optional integer, default 300, minimum 60, maximum 3600), nonce (optional string, at most 128 characters). Returns {token, token_type:"agent_identity+jwt", expires_at, issuer, jwks_uri, claims}. The token is a credential. iss is https://cooperemail.com. sub is the inbox id. email is the inbox address. cooper.owner_verified is a boolean. The token has no account id, no plan, no API key, and no owner email or name. Another inbox is HTTP 404 inbox_not_found. A suspended account is HTTP 403 account_suspended. Minting is limited to 60 per hour per inbox, then HTTP 429. When identity signing is not configured the route is HTTP 503 identity_unavailable. Same as POST /api/v1/inboxes/{id}/identity-token.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"audience": "<audience>"
},
"name": "cooper_identity_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nonce | No | Optional string copied into the token. At most 128 characters. | |
| audience | Yes | https origin or absolute URI the token is for, at most 255 characters. The service must send the same string when it verifies. | |
| inbox_id | No | Inbox id (inb_…), username, or email. Omit it when this key is limited to one inbox. Another inbox is 404 inbox_not_found. | |
| ttl_seconds | No | Lifetime in seconds. Default 300. Minimum 60. Maximum 3600. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | Compact JWT. It is a credential for the audience. | |
| claims | No | Claims inside the token. iss, sub, email, email_verified, aud, iat, nbf, exp, jti, optional nonce, and cooper. No account id and no owner email or name. | |
| issuer | No | Always https://cooperemail.com. | |
| jwks_uri | No | HTTPS URL of the public JSON Web Key Set. | |
| expires_at | No | ISO-8601 time the token expires. | |
| token_type | No | Always agent_identity+jwt. |