Software-owned accounts
Verify a software-controlled account and authenticate with recoverable machine keys.
POST
Enroll machine key
These lifecycle and machine-key endpoints are local previews until deployed. Phone verification also requires a configured SMS provider.
Verify the account
Register withPOST /api/v2/accounts using email and password, then follow the returned verification step. Keep the authenticated account session for enrolling credentials. Signup does not create an agent, application, or API key.
For phone sign-in or signup, send {"phone":"+14155550123"} to POST /api/v2/accounts/phone/challenges. Submit the returned challengeId and six-digit code to POST /api/v2/accounts/phone/verify. Success returns a session token and sets the browser session cookie. Each attempt is one-use; request a new code after an incorrect or expired attempt.
Enroll machine keys
Generate two separate Ed25519 key pairs locally. Keep the recovery private key separate from the running software. Send only public JWKs toPOST /api/v2/account/machine-keys, using the verified account session:
keyId, challengeId, message, and expiresAt. Sign the exact UTF-8 bytes of message with both private keys. Submit base64url signatures as signature and recoverySignature, together with challengeId, to POST /api/v2/accounts/machine-keys/{keyId}/verify. Do not reserialize the message before signing.
Success includes credential, the standard account API-key creation response, and expiresIn: 1800. Use its secret key as a Bearer credential. It has only the enrolled scopes and expires after 30 minutes.
Authenticate again or recover
For another credential, request{"purpose":"token"} at POST /api/v2/accounts/machine-keys/{keyId}/challenges. Sign the returned message with the primary private key and submit the proof to the verify endpoint. Challenges expire after five minutes and cannot be replayed.
If the primary key is lost, generate two new pairs. Request a challenge with purpose: "recover", publicKey, and recoveryKey. Sign its message with the old recovery key (signature), new primary key (newSignature), and new recovery key (recoverySignature). Verification rotates both keys and immediately invalidates credentials issued under the old version.
The authenticated account can revoke a key with DELETE /api/v2/account/machine-keys/{keyId}. Machine credentials cannot request human:actions or payment scopes. Owning an agent or connecting an application never bypasses provider authorization or payment approval.Authorizations
Body
application/json
Response
The request completed.
The response is of type object.
Last modified on November 9, 2026