Deployments
Get a deployment's totals
What the deployment ran and what it held, over every attempt.
GET
/
v1
/
deployments
/
{deployment_id}
/
metrics
Get a deployment's totals
curl --request GET \
--url https://api.abstract.inc/v1/deployments/{deployment_id}/metrics \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.abstract.inc/v1/deployments/{deployment_id}/metrics"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "<string>",
"state": "created",
"attempts": 123,
"blocks": 123,
"chunks": 123,
"usage": {
"input_tokens": 123,
"cached_input_tokens": 123,
"output_tokens": 123
},
"cost_usd": 123,
"gpu_busy_ms": 123,
"held_s": 123,
"idle_today_s": 123,
"idle_budget_s": 123,
"last_chunk_at": 123,
"idle_at": 123
}{
"error": {
"message": "Invalid API key.",
"type": "invalid_request_error",
"code": "invalid_api_key"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"retryable": true,
"retry_after_s": 123,
"request_id": "<string>",
"param": "<string>",
"cameras": [
"<string>"
],
"accepts": [
"<string>"
],
"minimum_version": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"retryable": true,
"retry_after_s": 123,
"request_id": "<string>",
"param": "<string>",
"cameras": [
"<string>"
],
"accepts": [
"<string>"
],
"minimum_version": "<string>"
}
}Authorizations
Headers
The API version your client was written for. 2026-11-17 is the newest version; 2026-10-27 and 2026-11-16 are still answered on every route except POST /v1/get_action, which refuses them with 400 unsupported_api_version (minimum_version: 2026-11-17): its request is application/vnd.abstract.chunk only. The deployment routes are answered under any of the three. Without this header the request is answered under the newest version; a version the API does not answer is refused with 400 unsupported_api_version before anything runs.
Available options:
2026-10-27, 2026-11-16, 2026-11-17 Response
The totals.
⌘I
Get a deployment's totals
curl --request GET \
--url https://api.abstract.inc/v1/deployments/{deployment_id}/metrics \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.abstract.inc/v1/deployments/{deployment_id}/metrics"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "<string>",
"state": "created",
"attempts": 123,
"blocks": 123,
"chunks": 123,
"usage": {
"input_tokens": 123,
"cached_input_tokens": 123,
"output_tokens": 123
},
"cost_usd": 123,
"gpu_busy_ms": 123,
"held_s": 123,
"idle_today_s": 123,
"idle_budget_s": 123,
"last_chunk_at": 123,
"idle_at": 123
}{
"error": {
"message": "Invalid API key.",
"type": "invalid_request_error",
"code": "invalid_api_key"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"retryable": true,
"retry_after_s": 123,
"request_id": "<string>",
"param": "<string>",
"cameras": [
"<string>"
],
"accepts": [
"<string>"
],
"minimum_version": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"retryable": true,
"retry_after_s": 123,
"request_id": "<string>",
"param": "<string>",
"cameras": [
"<string>"
],
"accepts": [
"<string>"
],
"minimum_version": "<string>"
}
}