> ## Documentation Index
> Fetch the complete documentation index at: https://help.statisfy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Pull from Linear now

> Starts a pull of the saved projects, or of one (`project_id`), optionally over a date range. When a pull is already in flight, nothing starts and that run comes back (200, already_running). A 422 when no config is saved; a 404 when `project_id` is not in it. Poll /runs/{run_id} for the outcome.



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/integrations/linear/runs
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/integrations/linear/runs:
    post:
      tags:
        - integrations
      summary: Pull from Linear now
      description: >-
        Starts a pull of the saved projects, or of one (`project_id`),
        optionally over a date range. When a pull is already in flight, nothing
        starts and that run comes back (200, already_running). A 422 when no
        config is saved; a 404 when `project_id` is not in it. Poll
        /runs/{run_id} for the outcome.
      operationId: integrations_linear_start_run
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                end_date:
                  anyOf:
                    - pattern: ^\d{4}-\d{2}-\d{2}$
                      type: string
                    - type: 'null'
                  default: null
                  description: Pull issues to this day (YYYY-MM-DD), with start_date
                  title: End Date
                project_id:
                  anyOf:
                    - maxLength: 200
                      minLength: 1
                      type: string
                    - type: 'null'
                  default: null
                  description: >-
                    Pull only this project. It must be in the saved
                    `project_ids`. Left out: every project
                  title: Project Id
                start_date:
                  anyOf:
                    - pattern: ^\d{4}-\d{2}-\d{2}$
                      type: string
                    - type: 'null'
                  default: null
                  description: Pull issues from this day (YYYY-MM-DD), with end_date
                  title: Start Date
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntegrationRunStarted'
          description: Successful Response
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntegrationRunStarted'
          description: Accepted
      security:
        - HTTPBearer: []
components:
  schemas:
    IntegrationRunStarted:
      properties:
        message:
          title: Message
          type: string
        run_id:
          description: The new run, or the one already in flight
          title: Run Id
          type: integer
        started_at:
          format: date-time
          title: Started At
          type: string
        status:
          description: >-
            scheduled (202): the run starts now; already_running (200): a run of
            this subtype is in flight
          enum:
            - scheduled
            - already_running
          title: Status
          type: string
      required:
        - status
        - run_id
        - started_at
        - message
      title: IntegrationRunStarted
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.