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

# Get a task



## OpenAPI

````yaml /openapi.json get /tasks/{id}
openapi: 3.1.0
info:
  title: Cura API
  version: 1.0.0
  description: >-
    Public, read-only access to a workspace's portfolio. Authenticate every
    request with your `cura_…` API key as a bearer token.
servers:
  - url: https://api.cura.inc
    description: Production
security:
  - ApiKey: []
paths:
  /tasks/{id}:
    get:
      tags:
        - Tasks
      summary: Get a task
      operationId: getTask
      parameters:
        - in: path
          name: id
          schema:
            type: string
            format: uuid
            pattern: >-
              ^([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|ffffffff-ffff-ffff-ffff-ffffffffffff)$
            description: Task id.
          required: true
          description: Task id.
      responses:
        '200':
          description: The task.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Task'
                required:
                  - data
                additionalProperties: false
        '400':
          description: Invalid task id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Task not found in this workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Task:
      type: object
      properties:
        id:
          type: string
          description: The task's unique id.
        attributes:
          type: object
          properties:
            title:
              type: string
              description: Task title.
            description:
              anyOf:
                - type: string
                - type: 'null'
              description: Longer task description, if any.
            status:
              type: string
              enum:
                - triage
                - todo
                - in_progress
                - completed
                - cancelled
              description: Workflow status of the task.
            priority:
              anyOf:
                - type: string
                  enum:
                    - low
                    - medium
                    - high
                    - urgent
                - type: 'null'
              description: Task priority, if set.
            source:
              anyOf:
                - type: string
                  enum:
                    - manual
                    - email
                    - note
                - type: 'null'
              description: >-
                How the task was created (manual, or auto-generated from
                email/note).
            company_id:
              anyOf:
                - type: string
                - type: 'null'
              description: Id of the related portfolio company, if any.
            assignee_id:
              anyOf:
                - type: string
                - type: 'null'
              description: User id of the assignee, if any.
            due_date:
              anyOf:
                - type: string
                - type: 'null'
              description: Due date (YYYY-MM-DD calendar date), if set.
            created_at:
              type: string
              description: When the task was created (ISO 8601 timestamp).
            updated_at:
              type: string
              description: When the task was last updated (ISO 8601 timestamp).
          required:
            - title
            - description
            - status
            - priority
            - source
            - company_id
            - assignee_id
            - due_date
            - created_at
            - updated_at
          additionalProperties: false
      required:
        - id
        - attributes
      additionalProperties: false
      description: A portfolio follow-up task.
    Error:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message.
      required:
        - error
      additionalProperties: false
      description: An error response.
  securitySchemes:
    ApiKey:
      type: http
      scheme: bearer
      description: >-
        Your workspace API key (`cura_…`), sent as `Authorization: Bearer
        <key>`.

````