Getting started
To begin using the FAQCraft API, you'll need to understand a few key concepts:
Base URL
All API requests should be made to:
https://api.faqcraft.com
Authentication
Most endpoints require authentication using a Bearer token. Include your token in the Authorization header:
Authorization: Bearer YOUR_API_TOKEN
Create a token in the app under Settings > MCP > Create Token. MCP tokens are accepted as Bearer tokens on every endpoint, grant the same access as your login, and work for six months, or until you revoke them.
HTTP status codes
The API uses standard HTTP status codes to indicate the success or failure of requests:
200- Successful request400- Bad request (validation errors)401- Unauthorized (invalid or missing token)404- Resource not found500- Server error
Error response format
When an error occurs, the API returns a JSON object with an error message:
{
"error": "Validation error message"
}
Rate limiting
The API implements rate limiting to ensure fair usage. If you exceed the rate limit, you'll receive a 429 status code.