API Documentation
Endpoints
Validate OTP
POST
/
validate
Copy
curl --request POST \
--url https://api.fastotp.co/validate \
--header 'Content-Type: application/json' \
--data '{
"token": "<string>",
"identifier": "<string>"
}'
Copy
{
"otp": {
"id": "9b202659-fee7-46ab-836b-cdd310c4f327",
"identifier": "trojan",
"type": "alpha_numeric",
"status": "validated",
"delivery_methods": [
"email"
],
"delivery_details": {
"email": "[email protected]"
},
"expires_at": "2024-01-19T17:04:06.000000Z",
"created_at": "2024-01-19T00:24:06.000000Z",
"updated_at": "2024-01-19T00:24:06.000000Z"
}
}
Headers
your API key
Body
application/json
Response
200
application/json
OK
The response is of type object
.
Copy
curl --request POST \
--url https://api.fastotp.co/validate \
--header 'Content-Type: application/json' \
--data '{
"token": "<string>",
"identifier": "<string>"
}'
Copy
{
"otp": {
"id": "9b202659-fee7-46ab-836b-cdd310c4f327",
"identifier": "trojan",
"type": "alpha_numeric",
"status": "validated",
"delivery_methods": [
"email"
],
"delivery_details": {
"email": "[email protected]"
},
"expires_at": "2024-01-19T17:04:06.000000Z",
"created_at": "2024-01-19T00:24:06.000000Z",
"updated_at": "2024-01-19T00:24:06.000000Z"
}
}
Assistant
Responses are generated using AI and may contain mistakes.