Documentation Index
Fetch the complete documentation index at: https://docs.directify.app/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
All API endpoints require authentication using Laravel Sanctum. Include your API token in the Authorization header:Base URL
Rate Limiting
API requests are limited to 120 requests per minute per directory. This limit is designed to support automated workflows, including LLM-powered integrations that manage listings programmatically. If you exceed the rate limit, the API returns a429 Too Many Requests response. Implement exponential backoff and retry logic to handle this gracefully.
Error Responses
Validation Errors
When request validation fails, the API returns a 422 status code with validation error details:Authentication Errors
When authentication fails, the API returns a 401 status code:Authorization Errors
When the user doesn’t have access to a directory, the API returns a 403 status code:Not Found Errors
When a resource is not found, the API returns a 404 status code:Best Practices
- Always check if a listing exists before creating a new one using the
/existsendpoint - Use pagination when retrieving large lists of listings
- Include custom field values in your listing creation/update requests
- Validate category and tag IDs before sending them in requests
- Handle rate limiting by implementing exponential backoff for failed requests
- Cache directory metadata like categories, tags, and custom fields to reduce API calls
