Yardstick Tasks API

User-scoped task queue and deep-link resolution. The list endpoint returns the authenticated token principal's open and completed tasks; the deep-link endpoint resolves a `tsk_…` id to a dashboard URL. Both endpoints require the secret-only `tasks:read` scope and resolve the principal server-side from `api_tokens.created_by`. Tasks are partitioned by mode; survey tasks are live-only by design.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 3

GET /v1/tasks List the authenticated principal's tasks #
POST /v1/tasks/{task_id}/actions/respond Answer an assigned review task #

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/yardstick-team:yardstick-team-tasks-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

yardstick-team-tasks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Yardstick Team Tasks API
  version: '2026-05-02'
  description: 'Operations tagged Tasks across 2 of this provider''s published API definitions: api.yardstick.team_v1_openapi.json, yardstick-team-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.yardstick.team
  description: Production
security:
- bearerAuth: []
tags:
- name: Tasks
  description: User-scoped task queue and deep-link resolution. The list endpoint returns the authenticated token principal's open and completed tasks; the deep-link endpoint resolves a `tsk_…` id to a dashboard URL. Both endpoints require the secret-only `tasks:read` scope and resolve the principal server-side from `api_tokens.created_by`. Tasks are partitioned by mode; survey tasks are live-only by design.
paths:
  /v1/tasks:
    get:
      operationId: listTasks
      summary: List the authenticated principal's tasks
      description: 'List the authenticated principal''s tasks


        **Required scopes:** `tasks:read`


        Returns the open and recently-completed tasks assigned to the token principal''s email, scoped to the token''s organization and mode. The principal is resolved server-side from `api_tokens.created_by`; if the creator is no longer an org member, the request returns `422 token_principal_not_resolvable` and an admin must re-issue the token under a current member. See the Token principal lifecycle section in `docs/api/tasks-api.md`. Cursor-paginated via `starting_after=` keyed on `(due_date, created_at, id)`. Review tasks include stack_key and job_id for grouping within the current organization and mode. Survey-token metadata is never returned; survey deep-links carry the `?token=auth` sentinel so the dashboard re-authenticates the viewer.


        **Example (curl):**


        ```bash

        curl ''https://api.yardstick.team/v1/tasks?limit=20&status=in_progress'' \

        -H ''Authorization: Bearer ys_sk_live_…''

        ```


        **Example (TypeScript):**


        ```ts

        await fetch(

        "https://api.yardstick.team/v1/tasks?limit=20&status=in_progress",

        { headers: { Authorization: `Bearer ${process.env.YS_API_KEY}` } },

        ).then((r) => r.json());

        ```'
      tags:
      - Tasks
      deprecated: false
      security:
      - bearerAuth:
        - tasks:read
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Authentication failure
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Permission denied (scope or feature flag)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Resource not found. The error uses the resource-specific code and param names the exact body field or path parameter that referenced it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Conflict (e.g. idempotency key reuse with different body)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
      - name: limit
        in: query
        required: false
        description: Page size (1-100, default 20).
        schema:
          type: integer
          minimum: 1
          maximum: 100
      - name: starting_after
        in: query
        required: false
        description: 'Cursor: id of the last record from the previous page.'
        schema:
          type: string
      - name: task_type
        in: query
        required: false
        description: Filter by `user_tasks.task_type` (e.g. `application_interview`, `interview_session`, `survey_schedule`).
        schema:
          type: string
      - name: status
        in: query
        required: false
        description: Filter by task status (e.g. `pending`, `in_progress`, `completed`).
        schema:
          type: string
      - name: due_before
        in: query
        required: false
        description: ISO-8601 UTC; only tasks due on or before this time.
        schema:
          type: string
          format: date-time
      - name: due_after
        in: query
        required: false
        description: ISO-8601 UTC; only tasks due on or after this time.
        schema:
          type: string
          format: date-time
      - name: X-Request-Id
        in: header
        required: false
        description: Optional caller-supplied request identifier. Values must match `^[A-Za-z0-9_-]{1,128}$`; a valid value is echoed in the response `X-Request-Id` header, otherwise the API generates one.
        schema:
          type: string
    servers:
    - url: https://api.yardstick.team
      description: Production
  /v1/tasks/{task_id}/actions/respond:
    post:
      operationId: createTasksTask_idActionsRespond
      summary: Answer an assigned review task
      description: 'Answer an assigned review task


        **Required scopes:** `tasks:write`


        Uses the same response functions as the dashboard. Application reviews accept approve (moves to Candidates), reject, hold, or ask_recruiter. Scorecard reviews accept thumbs_up or thumbs_down. When the reviewer is the hiring manager on a step that waits on them, thumbs_up advances the candidate and thumbs_down holds them. `ask_recruiter` requires a nonempty note; `send_to_recruiter: true` also sends the note to the recruiter and needs a note. Only the assigned reviewer with active organization membership may answer an open review. Closed reviews return 409; unsupported task kinds or answers return 400; an unassigned reviewer receives 403.


        **Example (curl):**


        ```bash

        curl https://api.yardstick.team/v1/tasks/tsk_abc123/actions/respond -X POST -H ''Authorization: Bearer ys_sk_live_…'' -H ''Content-Type: application/json'' -d ''{"decision":"approve"}''

        ```


        **Example (TypeScript):**


        ```ts

        await fetch("https://api.yardstick.team/v1/tasks/tsk_abc123/actions/respond", { method: "POST", headers: { Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json" }, body: JSON.stringify({ decision: "approve" }) });

        ```'
      tags:
      - Tasks
      deprecated: false
      security:
      - bearerAuth:
        - tasks:write
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Authentication failure
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Permission denied (scope or feature flag)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Resource not found. The error uses the resource-specific code and param names the exact body field or path parameter that referenced it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Conflict (e.g. idempotency key reuse with different body)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
      - name: task_id
        in: path
        required: true
        schema:
          type: string
      - name: Idempotency-Key
        in: header
        required: false
        description: Supported for safe retry. Reuse the same key to receive the cached response without repeating the operation.
        schema:
          type: string
      - name: X-Request-Id
        in: header
        required: false
        description: Optional caller-supplied request identifier. Values must match `^[A-Za-z0-9_-]{1,128}$`; a valid value is echoed in the response `X-Request-Id` header, otherwise the API generates one.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                decision:
                  type: string
                  enum:
                  - approve
                  - reject
                  - hold
                  - ask_recruiter
                  - thumbs_up
                  - thumbs_down
                note:
                  type: string
                  maxLength: 10000
                send_to_recruiter:
                  type: boolean
              required:
              - decision
              additionalProperties: false
    servers:
    - url: https://api.yardstick.team
      description: Production
  /v1/tasks/{task_id}/actions/deep_link:
    get:
      operationId: listTasksTask_idActionsDeep_link
      summary: Resolve a task to a dashboard deep link
      description: 'Resolve a task to a dashboard deep link


        **Required scopes:** `tasks:read`


        Returns `{ web_url, route, mode }` for the supplied `tsk_…` id. Mode-partitioned: a live token requesting a test-mode task receives `404 not_found` (never `403`) to avoid leaking cross-partition existence. If the underlying resource the task references has been deleted, the response is `410 resource_gone`. Survey and reviewer_evaluation tasks return URLs ending in `?token=auth`; the private survey-completion token is never included in the response.


        **Example (curl):**


        ```bash

        curl https://api.yardstick.team/v1/tasks/tsk_abc123/actions/deep_link \

        -H ''Authorization: Bearer ys_sk_live_…''

        ```


        **Example (TypeScript):**


        ```ts

        await fetch(

        "https://api.yardstick.team/v1/tasks/tsk_abc123/actions/deep_link",

        { headers: { Authorization: `Bearer ${process.env.YS_API_KEY}` } },

        ).then((r) => r.json());

        ```'
      tags:
      - Tasks
      deprecated: false
      security:
      - bearerAuth:
        - tasks:read
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Authentication failure
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Permission denied (scope or feature flag)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Resource not found. The error uses the resource-specific code and param names the exact body field or path parameter that referenced it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Conflict (e.g. idempotency key reuse with different body)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
      - name: task_id
        in: path
        required: true
        schema:
          type: string
      - name: X-Request-Id
        in: header
        required: false
        description: Optional caller-supplied request identifier. Values must match `^[A-Za-z0-9_-]{1,128}$`; a valid value is echoed in the response `X-Request-Id` header, otherwise the API generates one.
        schema:
          type: string
    servers:
    - url: https://api.yardstick.team
      description: Production
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
              - invalid_request_error
              - authentication_error
              - permission_error
              - rate_limit_error
              - api_error
            code:
              type: string
            message:
              type: string
            param:
              type: string
            request_id:
              type: string
            details:
              type: object
              additionalProperties: {}
              description: Machine-readable specifics for offer document refusals only, such as the missing fill-ins of required_answers_missing or the clashing fill-in of fill_in_type_clash.
          required:
          - type
          - code
          - message
          - request_id
          additionalProperties: false
      required:
      - error
      additionalProperties: false
      description: Canonical API error envelope. Every 404 not-found response uses a resource-specific code and includes param with the exact body field or path parameter that referenced the unavailable resource. Use code and param for programmatic handling, and request_id for support; message text is not a stable contract.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Yardstick API tokens. Format: `ys_(sk|pk)_(live|test)_<32+ chars>`. **Secret keys** (`ys_sk_…`) are server-only — using one from a browser origin returns `secret_key_browser_denied`. **Publishable keys** (`ys_pk_…`) are browser-safe and restricted to intake-only person creation.'
x-refined-from:
- api.yardstick.team_v1_openapi.json
- yardstick-team-openapi.json
x-provenance:
  method: harvested
  publisher: Yardstick
  source: https://api.yardstick.team/v1/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)