Faqs

Create FAQ

Create a new FAQ entry. The FAQ will be associated with the organization of the API key.

POST
/v1/faqs

Authorization

bearerAuth
AuthorizationBearer <token>

Bearer token authentication for API access.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://api.sophiie.ai/v1/faqs" \  -H "Content-Type: application/json" \  -d '{    "question": "What is the question of the FAQ?",    "answer": "This is the answer of the FAQ"  }'
{
  "faq": {
    "id": 123,
    "question": "What is the question of the FAQ?",
    "answer": "This is the answer of the FAQ",
    "isActive": true
  }
}
{
  "success": false,
  "message": "Invalid or expired token",
  "error": {
    "status": 401,
    "message": "Invalid or expired token"
  }
}
{
  "success": false,
  "message": "Internal server error",
  "error": {
    "status": 500,
    "message": "Internal server error"
  }
}