curl --request POST \
--url https://app.proxy-layer.com/api/v1/auth/otp/verify \
--header 'Content-Type: application/json' \
--data '
{
"email": "agent@example.com",
"code": "123456",
"keyName": "AI Agent",
"access": "full"
}
'{
"apiKey": "pl_live_example",
"mode": "live",
"keyId": "key_01JQ8A",
"keyPrefix": "pl_live_examp",
"scopes": [
"account:read",
"orders:read"
],
"user": {
"id": "user_01JQ8A",
"email": "agent@example.com"
}
}基础
验证 OTP 并获取密钥
Exchanges an email OTP code for a Bearer API key (shown once). Creates an account if new.
POST
/
api
/
v1
/
auth
/
otp
/
verify
curl --request POST \
--url https://app.proxy-layer.com/api/v1/auth/otp/verify \
--header 'Content-Type: application/json' \
--data '
{
"email": "agent@example.com",
"code": "123456",
"keyName": "AI Agent",
"access": "full"
}
'{
"apiKey": "pl_live_example",
"mode": "live",
"keyId": "key_01JQ8A",
"keyPrefix": "pl_live_examp",
"scopes": [
"account:read",
"orders:read"
],
"user": {
"id": "user_01JQ8A",
"email": "agent@example.com"
}
}请求体
application/json