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

# Create a recurring task

> Create the first task and its schedule atomically. Accepts the same task fields as POST /v1/tasks.



## OpenAPI

````yaml /api-reference/openapi.yaml post /v1/task_recurrences
openapi: 3.0.1
info:
  title: Slant Public API V1
  version: v1
  description: Public API for creating and managing resources in Slant
  contact:
    name: Slant API Support
    email: api@slant.com
servers:
  - url: https://api.slant.app
security:
  - bearer: []
paths:
  /v1/task_recurrences:
    post:
      tags:
        - Tasks
      summary: Create a recurring task
      description: >-
        Create the first task and its schedule atomically. Accepts the same task
        fields as POST /v1/tasks.
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - book_id
                - title
                - recurrence
              properties:
                book_id:
                  type: string
                  description: The book ID
                  example: abc123xyz
                title:
                  type: string
                  description: Task title
                  example: Follow up with client
                recurrence:
                  type: object
                  properties:
                    interval_unit:
                      type: string
                      enum:
                        - days
                        - weeks
                        - months
                        - years
                    interval_value:
                      type: integer
                      minimum: 1
                      maximum: 12
                      description: Number of intervals, at most 2 for years.
                    start_at:
                      type: string
                      description: >-
                        ISO date in the book timezone or ISO timestamp. Sets the
                        first deadline on conversion.
                    recurring_until:
                      type: string
                      nullable: true
                      description: Inclusive ISO end date or timestamp. Use null to clear.
                    monthly_rule_type:
                      type: string
                      enum:
                        - calendar_day
                        - day_of_week
                        - last_day
                    weekday:
                      type: string
                      enum:
                        - sunday
                        - monday
                        - tuesday
                        - wednesday
                        - thursday
                        - friday
                        - saturday
                    weekday_ordinal:
                      type: string
                      enum:
                        - first
                        - second
                        - third
                        - fourth
                        - last
                  required:
                    - start_at
                description:
                  type: string
                  description: Task description
                  example: Call to discuss portfolio
                deadline_at:
                  type: string
                  format: date-time
                  description: Deadline for the task
                  example: '2024-12-31T23:59:59Z'
                all_day:
                  type: boolean
                  description: Whether this is an all-day task
                  default: true
                status:
                  type: string
                  enum:
                    - todo
                    - done
                  description: Task status
                  default: todo
                priority:
                  type: string
                  enum:
                    - low_priority
                    - medium_priority
                    - high_priority
                    - urgent_priority
                  description: Task priority
                is_private:
                  type: boolean
                  description: >-
                    When true, only the creator, assignee (or members of the
                    assigned team), and collaborators can see this task.
                    Defaults to false.
                  default: false
                household_id:
                  type: string
                  description: >-
                    Associate task with a household (mutually exclusive with
                    contact_id and business_id)
                contact_id:
                  type: string
                  description: >-
                    Associate task with a contact (mutually exclusive with
                    household_id and business_id)
                business_id:
                  type: string
                  description: >-
                    Associate task with a business (mutually exclusive with
                    household_id and contact_id)
                assigned_to_id:
                  type: string
                  description: >-
                    User ID from the relevant book users list to assign the task
                    to
                assigned_team_id:
                  type: string
                  description: >-
                    Team ID to assign the task to (mutually exclusive with
                    assigned_to_id)
                tag_ids:
                  type: array
                  items:
                    type: string
                  description: Label IDs to apply to the task
        required: true
      responses:
        '201':
          description: Recurring task created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Task'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      security:
        - bearer: []
components:
  schemas:
    Task:
      type: object
      required:
        - id
        - title
        - status
        - all_day
        - created_at
        - updated_at
      properties:
        book_id:
          type: string
          description: The book ID
        id:
          type: string
          description: The task ID
          example: abc123xyz
        task_recurrence:
          type: object
          properties:
            interval_unit:
              type: string
              enum:
                - days
                - weeks
                - months
                - years
            interval_value:
              type: integer
              minimum: 1
              maximum: 12
              description: Number of intervals, at most 2 for years.
            start_at:
              type: string
              nullable: true
            recurring_until:
              type: string
              nullable: true
              description: Inclusive ISO end date or timestamp. Use null to clear.
            monthly_rule_type:
              type: string
              enum:
                - calendar_day
                - day_of_week
                - last_day
            weekday:
              type: string
              nullable: true
            weekday_ordinal:
              type: string
              nullable: true
            id:
              type: string
            active:
              type: boolean
            next_run_at:
              type: string
              format: date-time
              nullable: true
          nullable: true
        title:
          type: string
          description: Task title
          example: Follow up with client
        description:
          type: string
          nullable: true
          description: Task description
        deadline_at:
          type: string
          format: date-time
          nullable: true
          description: Deadline for the task
        all_day:
          type: boolean
          description: Whether this is an all-day task
        status:
          type: string
          enum:
            - todo
            - done
          description: Task status
        priority:
          type: string
          enum:
            - low_priority
            - medium_priority
            - high_priority
            - urgent_priority
          nullable: true
          description: Task priority
        is_private:
          type: boolean
          description: >-
            When true, only the creator, assignee (or members of the assigned
            team), and collaborators can see this task. Use for sensitive tasks
            like HR or payroll.
        completed_at:
          type: string
          format: date-time
          nullable: true
          description: When the task was completed
        created_at:
          type: string
          format: date-time
          description: When the task was created
        updated_at:
          type: string
          format: date-time
          description: When the task was last updated
        assigned_to:
          type: object
          nullable: true
          properties:
            id:
              type: string
              description: User ID
            name:
              type: string
              description: User full name
            email:
              type: string
              format: email
              description: User email
        assigned_team:
          type: object
          nullable: true
          properties:
            id:
              type: string
              description: Team ID
            name:
              type: string
              description: Team name
        record:
          type: object
          nullable: true
          description: >-
            The associated record (household, contact, or business) this task is
            linked to
          properties:
            id:
              type: string
              description: Record ID
            type:
              type: string
              enum:
                - household
                - contact
                - business
              description: Type of record
            name:
              type: string
              description: Name of the record
        tags:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              name:
                type: string
          description: Labels applied to the task
    Error:
      type: object
      required:
        - error
        - detail
      properties:
        error:
          type: string
          description: Error code
        detail:
          type: string
          description: Human-readable error description
  responses:
    BadRequest:
      description: >-
        Bad Request - malformed JSON, invalid filters, or missing required book
        context
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            invalid_json:
              value:
                error: invalid_json
                detail: Request body must be valid JSON
    Unauthorized:
      description: Unauthorized - missing or invalid token
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            token_missing:
              value:
                error: token_missing
                detail: Authorization header is required
            token_invalid:
              value:
                error: token_invalid
                detail: Access token could not be verified
    Forbidden:
      description: >-
        Access denied. Policy and membership failures may have an empty body. A
        read-only personal token cannot perform writes.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            token_read_only:
              value:
                error: token_read_only
                detail: This token only allows read (GET) requests
            connection_revoked:
              value:
                error: connection_revoked
                detail: This connection has been revoked.
    TooManyRequests:
      description: >-
        An hourly API rate limit was exceeded. Wait Retry-After seconds before
        retrying.
      headers:
        Retry-After:
          schema:
            type: string
          description: Seconds until the rate-limit window resets
      content:
        application/json:
          schema:
            type: object
            required:
              - error
              - status
              - detail
            properties:
              error:
                type: string
                example: Too Many Requests
              status:
                type: integer
                example: 429
              detail:
                type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: OAuth or personal access token
      description: >-
        OAuth access token or Slant personal access token (slnt_pat_...).
        Read-only personal tokens allow GET requests only.

````

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