API REFERENCE
Verify Agent Email
On this page
POST
/api/agents/verifyVerify an agent's email with the code sent during signup. Returns an API key on success.
Authentication
This endpoint does not require authentication.
Request
cURL
curl --request POST \
--url 'https://api.recoupable.dev/api/agents/verify' \
--header 'Content-Type: application/json' \
--data '{
"email": "you@example.com",
"code": "123456"
}'Request body required
Email and verification code
application/json
emailstringrequiredThe email address used during signup.
format: email
codestringrequiredThe 6-digit verification code sent to the email.
minLength: 6 · maxLength: 6 · pattern: ^[0-9]{6}$
Responses
200Verification successful+
application/json
account_idstringrequiredThe account ID for the verified agent.
format: uuid
api_keystringrequiredAPI key for the verified account.
messagestringrequiredHuman-readable status message.
400Invalid or expired verification code+
application/json
errorintegerrequiredformat: int32
messagestringrequired429Too many failed verification attempts+
application/json
errorintegerrequiredformat: int32
messagestringrequiredFull specification
Download the OpenAPI file for complete schemas, constraints, and examples.
Download accounts.jsonView operation source
json
{
"description": "Verify an agent's email with the code sent during signup. Returns an API key on success.",
"security": [],
"requestBody": {
"description": "Email and verification code",
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgentVerifyRequest"
}
}
}
},
"responses": {
"200": {
"description": "Verification successful",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgentVerifyResponse"
}
}
}
},
"400": {
"description": "Invalid or expired verification code",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"429": {
"description": "Too many failed verification attempts",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}