/requestsCreate a permission request
Creates a new approval request and returns a hosted approval URL for the customer.
Rate limit: 60/minute
Notes
- Returns 201 for a new request.
- Returns 200 with the existing request when the same reference_id is reused for the same business.
Success envelope
Successful responses are returned as { data: ... }.
Example request
curl -X POST "$API_BASE_URL/api/v1/external/requests" \
-H "Authorization: Bearer ak_live_your_org_key" \
-H "Content-Type: application/json" \
-d '{
"reference_id": "order_1042",
"customer_name": "Avery Stone",
"customer_email": "avery@example.com",
"redirect_url": "https://studio.example.com/model-me/return",
"request_reason": "Approve image generation for your spring campaign",
"expires_in_hours": 168
}'Example response
{
"data": {
"request_id": "0e54d952-8d9f-4cb5-bf6e-8a90973d8af7",
"status": "pending",
"reference_id": "order_1042",
"created_at": "2026-04-02T18:14:11.205+00:00",
"expires_at": "2026-04-09T18:14:11.205+00:00",
"approval_url": "https://app.example.com/approve/6d2d..."
}
}