Think-Reason-Learn Jobs API

The Jobs API from Think-Reason-Learn — 2 operation(s) for jobs.

GitHub OpenAPI

Operations 3

GET /v1/jobs/{id}/results Download a bulk job's results #
GET /v1/jobs/{id} Follow a build, retrain or bulk job #
DELETE /v1/jobs/{id} Cancel a job #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/thinkreasonlearn-com:thinkreasonlearn-com-jobs-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

thinkreasonlearn-com-jobs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ThinkReasonLearn Jobs API
  version: '1'
  description: Pretrained, explainable prediction models. Each model scores an input and returns its own fields plus a `common` block that reads the same for every model. `GET /v1/models` lists every model with its input and output schema.
servers:
- url: https://api.thinkreasonlearn.com
security:
- bearer: []
tags:
- name: Jobs
paths:
  /v1/jobs/{id}/results:
    parameters:
    - name: id
      in: path
      required: true
      schema:
        type: string
    - name: format
      in: query
      schema:
        type: string
        enum:
        - json
        - csv
        default: json
    get:
      operationId: getBulkResults
      summary: Download a bulk job's results
      responses:
        '200':
          description: One row per input, in order. With format=csv, the same columns as CSV (reasons joined with "; "); a policy decision's CSV has index, status, outcome, one p_<OUTCOME> column per outcome, points, reasons, error.
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    const: list
                  job_id:
                    type: string
                  decision_id:
                    type: string
                  status:
                    type: string
                  decision_kind:
                    type: string
                    enum:
                    - binary
                    - ordinal
                  outcomes:
                    type: array
                    items:
                      type: string
                    description: 'ordinal only: the outcome names, lowest first.'
                  data:
                    type: array
                    items:
                      type: object
                      description: A yes/no decision's row has probability, level, level_rate, reasons_up and reasons_down; a policy decision's has outcome, probabilities, points and reasons (the 5 largest by points).
                      properties:
                        index:
                          type: integer
                        status:
                          type: string
                          enum:
                          - scored
                          - failed
                          - skipped
                          - pending
                        probability:
                          type:
                          - number
                          - 'null'
                        level:
                          type:
                          - string
                          - 'null'
                        level_rate:
                          type:
                          - number
                          - 'null'
                        reasons_up:
                          type: array
                          items:
                            type: object
                        reasons_down:
                          type: array
                          items:
                            type: object
                        outcome:
                          type:
                          - string
                          - 'null'
                        probabilities:
                          type: object
                          additionalProperties:
                            type:
                            - number
                            - 'null'
                        points:
                          type:
                          - number
                          - 'null'
                        reasons:
                          type: array
                          items:
                            type: object
                        version:
                          type:
                          - integer
                          - 'null'
                          description: 'Ordinal: the decision version that scored it.'
                        points_per_logit:
                          type:
                          - number
                          - 'null'
                          description: 'Ordinal: points per unit of log-odds.'
                        error:
                          type:
                          - string
                          - 'null'
        '400':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Jobs
  /v1/jobs/{id}:
    parameters:
    - name: id
      in: path
      required: true
      schema:
        type: string
    get:
      operationId: getJob
      summary: Follow a build, retrain or bulk job
      parameters:
      - name: after
        in: query
        schema:
          type: integer
          minimum: 0
          default: 0
        description: 'Return events after this seq: the `next` of your last poll.'
      - name: wait
        in: query
        schema:
          type: number
          minimum: 0
          maximum: 20
          default: 0
        description: Seconds to wait for a new event or a status change.
      responses:
        '200':
          description: The job and its new events.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Job'
        '400':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Jobs
    delete:
      operationId: cancelJob
      summary: Cancel a job
      responses:
        '200':
          description: The job, cancelled.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Job'
        '401':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Jobs
components:
  schemas:
    Job:
      type: object
      properties:
        id:
          type: string
        object:
          const: job
        kind:
          type: string
          enum:
          - build
          - retrain
          - policy
          - bulk
          description: 'policy: an ordinal decision''s rebuild after a policy edit.'
        status:
          type: string
          enum:
          - queued
          - running
          - succeeded
          - failed
          - cancelled
        decision_id:
          type:
          - string
          - 'null'
        progress:
          type: object
          description: 'Bulk jobs only: how many rows are in each state.'
          properties:
            total:
              type: integer
            scored:
              type: integer
            failed:
              type: integer
            skipped:
              type: integer
            pending:
              type: integer
        events:
          type: array
          items:
            type: object
            properties:
              seq:
                type: integer
              type:
                type: string
                description: profiled, check_written, answers, fitted, round, done, failed, cancelled, …
              detail:
                type: string
              done:
                type: integer
              total:
                type: integer
              data: {}
              created:
                type: integer
            required:
            - seq
            - type
            - detail
            - created
        next:
          type: integer
          description: Pass as `after` on the next poll.
        error:
          type: string
        cost_usd:
          type: number
          description: 'The charge once the job ended (a failed or cancelled build or retrain: 0; a bulk job: its scored rows); an estimate while it runs.'
        created:
          type: integer
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            type:
              type: string
            code:
              type: string
              enum:
              - invalid_api_key
              - permission_denied
              - invalid_request
              - model_not_found
              - not_found
              - conflict
              - insufficient_credits
              - monthly_cap_reached
              - key_limit_reached
              - rate_limited
              - upstream_error
              - upstream_timeout
              - unavailable
              - internal_error
          required:
          - message
          - type
          - code
      required:
      - error
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: An API key from https://api.thinkreasonlearn.com/console/keys.