API Documentation
Learn how to integrate with our API to manage your virtual machines and resources.
Getting Started
Learn how to authenticate and make your first API request
Authentication
Learn how to authenticate your API requests
Bearer Token
All API requests require authentication using a Bearer token. You can generate a token in your organization settings.
curl -X GET "https://dashboard.tensordock.com/api/v2/instances" \ -H "Authorization: Bearer YOUR_TOKEN"
Rate Limiting
API requests are limited to 100 requests per minute per organization. Rate limit headers are included in all responses.
Base URL
The base URL for all API requests
https://dashboard.tensordock.com/api/v2
Example Request
A complete example of making an authenticated request
curl -X GET "https://dashboard.tensordock.com/api/v2/instances" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example Response
The structure of a typical API response
{
"data": {
"type": "list",
"id": "instances",
"attributes": {
"instances": [
{
"type": "instance",
"id": "550e8400-e29b-41d4-a716-446655440000",
"attributes": {
"name": "My Instance",
"status": "running",
"region": "us-east-1"
}
}
]
}
}
}