Skip to content

Create a customer account

POST
/signup
curl --request POST \
--url https://api.proxyrequest.com/api/v1/signup \
--header 'Content-Type: application/json' \
--data '{ "email": "[email protected]", "password": "Correct-Horse-Battery-Staple-42", "token": "turnstile-response-token", "referral_code": "FRIEND2026", "affiliate_code": "DEVCOMMUNITY" }'

Creates an account after validating the email, password, and Cloudflare Turnstile token. Referral and affiliate codes are optional.

  • None

Comprehensive user registration with enhanced validation, security measures, and referral/affiliate code handling.

object
email
required

Valid email address for account creation

string format: email
>= 1 characters <= 255 characters
password
required

Strong password meeting security requirements

string
>= 1 characters
token
required

Cloudflare Turnstile security token

string
>= 1 characters
affiliate_code

Optional affiliate referral code

string
<= 50 characters
referral_code

Optional user referral code

string
<= 50 characters
Examples
ExampleCreateAccount

Create account

{
"email": "[email protected]",
"password": "Correct-Horse-Battery-Staple-42",
"token": "turnstile-response-token",
"referral_code": "FRIEND2026",
"affiliate_code": "DEVCOMMUNITY"
}

The resource or action result was created successfully.

Media typeapplication/json
object
token
required

Short-lived access token used in the Authorization header.

string
refresh
required

Long-lived token used to request a new access token.

string
Examples
ExampleIssuedTokens

Issued tokens

{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwidXNlcl9pZCI6IjU1MGU4NDAwLWUyOWItNDFkNC1hNzE2LTQ0NjY1NTQ0MDAwMSJ9.example-signature",
"refresh": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsInVzZXJfaWQiOiI1NTBlODQwMC1lMjliLTQxZDQtYTcxNi00NDY2NTU0NDAwMDEifQ.example-signature"
}

The request is malformed or violates a business rule.

Media typeapplication/json

Validation and API error payload. Field names may be added dynamically; field errors are returned as arrays of human-readable messages.

object
detail
string
non_field_errors
Array<string>
translation

Stable translation key suitable for client localisation.

string
key
additional properties
One of:
string
Examples
ExampleValidationError

Validation error

{
"non_field_errors": [
"The request could not be processed."
],
"translation": "errors.request.invalid"
}