Quick Start
Get started with the API in just a few steps:
- Choose a resource category from the sidebar
- Browse available endpoints and their documentation
- Use the interactive status code picker to explore responses
- Copy code examples in your preferred programming language
Making Your First Request
Here's a simple example to get you started with the Vani API:
cURL
curl -X GET "https://api.app.vanihq.com/vani/api/v1/spaces" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json"
Response Format
All API responses follow a consistent JSON format:
JSON Response
{
"success": true,
"data": {
"spaces": [
{
"id": "space_123",
"name": "My Workspace",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
]
},
"pagination": {
"page": 1,
"per_page": 20,
"total": 1
}
}
Next Steps
- Explore Resources - Browse the API resources in the sidebar
- Set up Authentication - Configure OAuth 2.0 or API key authentication
- Test Endpoints - Use the interactive examples to test API calls
- Build Your Integration - Start building your Vani integration