batches
GET
https://hermeticor.com /v1/batches Parameters
limitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://hermeticor.com/v1/batches" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"status": "queued",
"total": 0,
"succeeded": 0,
"failed": 0,
"pending": 0,
"stopOnError": true,
"createdAt": "2024-01-01T00:00:00Z",
"startedAt": "2024-01-01T00:00:00Z",
"finishedAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsPostV1BatchesResponse[]requiredShow child parameters
idstringrequiredstatusstringrequiredtotalintegerrequiredsucceededintegerrequiredfailedintegerrequiredpendingintegerrequiredstopOnErrorbooleanrequiredcreatedAtstringrequiredstartedAtstringrequiredfinishedAtstringrequirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/batches Queue up to 1,000 API calls; they run in order in the background (not atomic). Poll the batch or subscribe to batch.finished
Request body
application/json
operationsobject[]requiredShow child parameters
methodstringrequiredpathstringrequiredbodystopOnErrorbooleanidempotencyKeystring{
"operations": [
{
"method": "GET",
"path": "string",
"body": {}
}
],
"stopOnError": false,
"idempotencyKey": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/batches" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"operations":[{"method":"GET","path":"string","body":{}}],"stopOnError":false,"idempotencyKey":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
202 Default Response
Example
{
"id": "string",
"status": "queued",
"total": 0,
"succeeded": 0,
"failed": 0,
"pending": 0,
"stopOnError": true,
"createdAt": "2024-01-01T00:00:00Z",
"startedAt": "2024-01-01T00:00:00Z",
"finishedAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredstatusstringrequiredtotalintegerrequiredsucceededintegerrequiredfailedintegerrequiredpendingintegerrequiredstopOnErrorbooleanrequiredcreatedAtstringrequiredstartedAtstringrequiredfinishedAtstringrequiredGET
https://hermeticor.com /v1/batches/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/batches/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermeticor.com /v1/batches/{id} Cancel: calls not yet run are skipped (one already in flight completes)
Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/batches/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/batches/{id}/results Each call's status and response body, in call order (page with `after`)
Parameters
afterintegerquerylimitintegerqueryidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/batches/{id}/results" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"index": 0,
"method": "string",
"path": "string",
"status": "pending",
"responseStatus": 0,
"body": {},
"finishedAt": "2024-01-01T00:00:00Z"
}
],
"nextAfter": 0
}Schema
itemsobject[]requiredShow child parameters
indexintegerrequiredmethodstringrequiredpathstringrequiredstatusstringrequiredresponseStatusintegerrequiredbodyrequiredfinishedAtstringrequirednextAfterintegerrequiredUpdated