Register Public-Key Credential
Register Public-Key Credential
Register a public P-256 JWK using an existing AgentMail bearer API key
with api_key_create. Re-registering the same JWK creates a new
credential ID; it does not replace or recover an earlier credential.
The private key must never be sent to AgentMail.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
A public P-256 JWK. The object accepts exactly kty, crv, x, and y.
Private key material such as d, embedded key IDs, and all other members
are rejected. The server also rejects coordinates that are not a point on
P-256.
Defaults to AgentID key {first eight fingerprint characters}.
Response
Server-generated credential ID. Store this value as the signing key’s kid.
Server-owned credential discriminator. Callers cannot select or update it.
Human-readable credential name.
Registered public key material and its server-computed RFC 7638 thumbprint.
The immutable scope in which a public-key credential can approve AgentID sign-in.
Present when organization-wide revoke-all invalidated this credential generation.
