Create Security Questions API
Welcome to the documentation for the Create Security Questions API. This API helps user's create security questions for authentication.
Base URL
{baseURL}/v1/users/create-security-questions | POST
Authorization
Include the following Authorization header in your HTTP requests using a Bearer token:
Authorization: Bearer YOUR_ACCESS_TOKEN
Request Payload
Field | Type | Source | Required | Description |
---|---|---|---|---|
security_questions | array | body | ✅ Yes | Array of security questions and answers. |
- question | string | array | ✅ Yes | Unique identifier for the security question. |
- answer | string | array | ✅ Yes | User's answer to the security question. |
Sample Request
curl -X POST {baseURL}/v1/users/create-security-questions \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"security_questions": [
{
"question": "6408750686aba885d609e702",
"answer": "111"
},
{
"question": "6408750686aba885d609e703",
"answer": "1113"
},
{
"question": "6408750686aba885d609e704",
"answer": "1112"
}
]
}'
Sample 200 Response
{
"message": "Security questions created successfully",
"success": true
}