allmodels.ioDocs
API ReferenceAccount

Email a sign-in code

Start email-based account access for an agent. Provide the email address whose owner will approve access. AllModels sends that address a six-digit code. Ask the owner for the code, then call `POST /account/agent-signup/verify` with the same email address. No API key is required for this request, and the flow works for both new and existing AllModels accounts.

POST/account/agent-signup

Start email-based account access for an agent. Provide the email address whose owner will approve access. AllModels sends that address a six-digit code. Ask the owner for the code, then call POST /account/agent-signup/verify with the same email address. No API key is required for this request, and the flow works for both new and existing AllModels accounts.

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", {  method: "POST",  headers: { ...{}, "Content-Type": "application/json" },  body: JSON.stringify({  "email": "user@example.com"})});if (!response.ok) throw new Error(`AllModels request failed: ${response.status}`);console.log(await response.json());
{  "success": true,  "expiresIn": 300}
{  "error": "invalid_request"}
{  "error": "invalid_request"}
{  "error": "invalid_request"}
{  "error": "invalid_request"}