Skip to content
ACS Infra
Harvest

List Harvests

GET
/v1/harvest

List your harvest jobs, newest first, a page at a time: those of each of your API keys, and never another User's. Each job has its id, model, status, prompts, layers, tokens and times. limit takes 1 to 100 jobs, 20 by default. For the next page, send after with the page's last_id while has_more is true.

Authorization

bearer
headerAuthorizationBearer <token>

An API key: Authorization: Bearer sk-acs-..., or a key of the old platform, acs-bm-.... A User makes and revokes keys in the App.

Query Parameters

limit?string
after?string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$
Formatuuid

Response Body

HarvestList

application/json
  1. response
object*"list"
Value in"list"
data*array<>

Your harvest jobs, newest first, each as GET /v1/harvest/{job_id} answers it but without result and urls_expire_at. Read a done job by its job_id for the links to its files.

has_more*boolean

true when you have older harvest jobs: list them with after set to last_id.

last_id*|

The job_id of the page's last job, its oldest. null when the page is empty.

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$
Formatuuid
Example Request
curl -X GET 'https://api.staging.infra.acsresearch.org/v1/harvest' \  -H 'Authorization: Bearer <API_KEY>'
Example Response
{  "object": "list",  "data": [    {      "job_id": "453bd7d7-5355-4d6d-a38e-d9e7eb218c3f",      "run_id": "dded282c-8ebd-44cf-8ba5-9a234973d1ec",      "status": "pending",      "model": "string",      "n_prompts": 0,      "reserved_tokens": 0,      "layers": [        0      ],      "tokens": 0,      "created_at": "string",      "started_at": "string",      "completed_at": "string",      "files_expire_at": "string",      "files_expired": true,      "result": {        "n_shards": 0,        "layer_indices": [          0        ],        "manifest_url": "string",        "shard_urls": [          "string"        ],        "stats_url": "string",        "contents": "activations",        "tokens": 0,        "bytes_written": 0,        "timings": {          "load_s": 0,          "forward_s": 0,          "save_s": 0,          "upload_s": 0        }      },      "urls_expire_at": "string",      "error": "string"    }  ],  "has_more": true,  "last_id": "3f0e1159-52f9-4f13-a146-e84e24b01f77"}