allmodels.ioDocs
API ReferenceAccount

Verify the code and receive an API key

Complete email-based account access by submitting the same email address and the six-digit code from the verification email. A successful response contains an AllModels API key. Save it securely when received because the full key is returned only in this response. Use it as `Authorization: Bearer <apiKey>` for authenticated API requests. If the code cannot be verified, start the flow again to request a new one.

POST/account/agent-signup/verify

Complete email-based account access by submitting the same email address and the six-digit code from the verification email. A successful response contains an AllModels API key. Save it securely when received because the full key is returned only in this response. Use it as Authorization: Bearer <apiKey> for authenticated API requests. If the code cannot be verified, start the flow again to request a new one.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

Client
Language
import { writeFile } from "node:fs/promises";const response = await fetch("https://api.allmodels.io/account/agent-signup/verify", {  method: "POST",  headers: { ...{}, "Content-Type": "application/json" },  body: JSON.stringify({  "email": "user@example.com",  "code": "123456"})});if (!response.ok) throw new Error(`AllModels request failed: ${response.status}`);console.log(await response.json());
{  "apiKey": "sk_live_..."}
{  "error": "invalid_request"}
{  "error": "invalid_request"}
{  "error": "invalid_request"}
{  "error": "invalid_request"}