Skip to main content
    Ivy Biosciences Docs/Call the platform/API/Reference/Reference/Jobs/GET /v1/jobs/{jobId}/artifact-content

    GET /v1/jobs/{jobId}/artifact-content

    Read a job's result content

    Auth: required. Send an ivy_ API key (Authorization: Bearer ivy_… or X-Ivy-Api-Key), a Clerk session JWT (Authorization: Bearer …) or the Clerk __session cookie (browser sessions). See Authentication.

    Returns the content of one of a finished job's result files, either as a parsed summary with metrics (format=parsed, the default) or as the raw text (format=raw). Raw text is cut at maxLength characters and truncated says so.

    artifactType picks the file; it defaults to output, and the types a job offers depend on its tool. For a job whose results are a zip archive, member names one file inside it. With preflight=true the route only checks that the file exists and is readable and returns that verdict, without the content.

    A job that is still running returns 404 with code JOB_NOT_COMPLETE: the file does not exist yet, so retry after the job finishes. A job that failed returns 422 JOB_FAILED with its error message, and that one is permanent. A job you cannot read and a job outside your API key's project scope are reported like a job that does not exist (404 JOB_NOT_FOUND).

    Request

    Path parameters

    jobIdstring (uuid)

    Job UUID.

    Query parameters

    artifactTypestring

    Which result file to read. Defaults to output.

    formatenum ("parsed" | "raw")

    parsed for a summary and metrics, raw for the file text. Defaults to parsed.

    maxLengthinteger

    Most characters of raw content to return. Defaults to 100000 and is capped at 500000.

    preflightenum ("true")

    true to check availability instead of returning content.

    memberstring

    One relative file path inside a results archive to serve instead of the type-selected file.

    Responses

    200 OK

    The parsed summary, the raw content, or the preflight verdict

    Response shape:

    successenum (true)
    jobIdstring (uuid)
    jobTypestring
    artifactTypestring
    summarystring

    A text summary of the parsed result (format=parsed).

    metricsobject

    Parsed metrics (format=parsed).

    rawContentstring

    The file text (format=raw), cut at maxLength characters.

    truncatedboolean

    true when rawContent was cut.

    originalSizeinteger

    Size of the full content before it was cut.

    preflightboolean

    true on a preflight response, which carries no content.

    validationobject

    Availability verdict for one artifact type (preflight with artifactType).

    availabilityobject

    Availability of every artifact the job offers (preflight without artifactType).

    archiveobject

    What was served, when the content came from a results archive.

    archiveFilesobject[]

    The served archive members with their names, when more than one was served.

    400 Bad Request

    The job id, format or member is invalid

    Response shape: object

    401 Unauthorized

    Authentication required

    Response shape: object

    403 Forbidden

    The caller carries no user identity, or may not read this job

    Response shape: object

    404 Not Found

    The job does not exist or is not visible to you (including a job outside your API key's project scope), or the artifact type is not available for it. Also JOB_NOT_COMPLETE while the job is still running; that 404 is retryable, so retry after the job finishes.

    Response shape: object

    405

    The method is not GET

    Response shape: object

    422 Unprocessable Entity

    The job failed (JOB_FAILED, permanent) or the file could not be read; code says which

    Response shape: object

    429 Too Many Requests

    Rate limit exceeded

    Response shape: object

    500 Internal Server Error

    Reading the content failed

    Response shape: object

    curl -X GET 'https://ivybiosciences.com/api/v1/jobs/{jobId}/artifact-content' \
      -H "Authorization: Bearer $IVY_API_KEY"

    Was this page helpful?

    Loading...