Signup
User registration and email verification
Sign up with email and password
POST
/signupRequest Body
{
"email": "user@example.com",
"password": "string",
"display_name": "string",
"redirect_url": "string"
}
Code Examples
curl -X POST "https://platform.antfly.io/api/v1/signup" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"password": "string",
"display_name": "string",
"redirect_url": "string"
}'const response = await fetch("https://platform.antfly.io/api/v1/signup", {
method: "POST",
headers: {
Authorization: "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"email": "user@example.com",
"password": "string",
"display_name": "string",
"redirect_url": "string"
})
});
const data = await response.json();Responses
{
"user_id": "string",
"redirect_url": "string"
}{
"error": "string",
"message": "string"
}{
"error": "string",
"message": "string"
}Verify email address
POST
/verify-emailRequest Body
{
"token": "string"
}
Code Examples
curl -X POST "https://platform.antfly.io/api/v1/verify-email" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"token": "string"
}'const response = await fetch("https://platform.antfly.io/api/v1/verify-email", {
method: "POST",
headers: {
Authorization: "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"token": "string"
})
});
const data = await response.json();Responses
{
"success": true
}{
"error": "string",
"message": "string"
}Resend verification email
POST
/resend-verificationRequest Body
{
"email": "user@example.com",
"redirect_url": "string"
}
Code Examples
curl -X POST "https://platform.antfly.io/api/v1/resend-verification" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"redirect_url": "string"
}'const response = await fetch("https://platform.antfly.io/api/v1/resend-verification", {
method: "POST",
headers: {
Authorization: "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"email": "user@example.com",
"redirect_url": "string"
})
});
const data = await response.json();Responses
{
"success": true
}{
"error": "string",
"message": "string"
}