Criar nova conta de usuário
cURL
curl --request POST \ --url https://api.example.com/auth/register \ --header 'Content-Type: application/json' \ --data ' { "email": "<string>", "password": "<string>", "nome": "<string>", "telefone": "<string>", "cpf": "<string>", "referral_code": "<string>" } '
{ "message": "Usuário criado com sucesso", "user": { "id": "550e8400-e29b-41d4-a716-446655440001", "email": "[email protected]", "nome": "Maria Santos", "telefone": "+5511988888888", "created_at": "2024-01-20T14:30:00Z" }, "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." }
curl -X POST https://api.indiqai.com/api/v1/auth/register \ -H "Content-Type: application/json" \ -d '{ "email": "[email protected]", "password": "Senha123!", "nome": "Maria Santos", "telefone": "+5511988888888" }'
Email
Senha
Telefone
+5511999999999
CPF
referral_code
{ "email": "[email protected]", "password": "Senha123!", "nome": "Pedro Indicado", "referral_code": "JOAO2024" }
Was this page helpful?