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

# Listar agendas

> Listar todos os agendamentos da organização.

**Obsoleto.** Os Agendamentos foram substituídos pelas Automações: em vez disso, crie uma automação com um acionamento `schedule:recurring` usando `POST /v3/organizations/{org_id}/automations`. Este endpoint continua disponível para os agendamentos existentes.

> [!WARNING]
>
> **Descontinuado.** Os schedules foram substituídos pelas [automações](https://docs.devin.ai/pt-BR/api-reference/v3/automations/post-organizations-automations.md). Este endpoint continua funcionando para os schedules existentes; novos trabalhos agendados devem ser criados como automação com um trigger `schedule:recurring`.

## Permissões

Exige um [usuário de serviço](https://docs.devin.ai/pt-BR/api-reference/v3/service-users/members-service-users.md) ou [token de acesso pessoal](https://docs.devin.ai/pt-BR/api-reference/personal-access-tokens.md) com a permissão `ManageOrgSchedules` no nível da organização.


## OpenAPI

````yaml pt-BR/v3-openapi.yaml GET /v3/organizations/{org_id}/schedules
openapi: 3.1.0
info:
  description: API Devin v3 com autenticação de usuário de serviço e RBAC
  title: Devin API v3
  version: 3.0.0
servers: []
security:
  - bearerAuth: []
paths:
  /v3/organizations/{org_id}/schedules:
    get:
      tags:
        - schedules
      summary: Listar agendas
      description: >-
        Listar todos os agendamentos da organização.


        **Obsoleto.** Os Agendamentos foram substituídos pelas Automações: em
        vez disso, crie uma automação com um acionamento `schedule:recurring`
        usando `POST /v3/organizations/{org_id}/automations`. Este endpoint
        continua disponível para os agendamentos existentes.
      operationId: handle_list_schedules_v3_organizations__org_id__schedules_get
      parameters:
        - description: 'ID da organização (prefixo: org-)'
          in: path
          name: org_id
          required: true
          schema:
            example: org-abc123def456
            title: Org Id
            type: string
        - in: query
          name: limit
          required: false
          schema:
            default: 200
            maximum: 200
            minimum: 1
            title: Limit
            type: integer
        - in: query
          name: offset
          required: false
          schema:
            default: 0
            minimum: 0
            title: Offset
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedResponse_ScheduleResponse_'
          description: Resposta bem-sucedida
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Não autorizado
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Proibido
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Não encontrado
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Conflito
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Conteúdo não processável
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Muitas requisições
      deprecated: true
components:
  schemas:
    PaginatedResponse_ScheduleResponse_:
      properties:
        end_cursor:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Cursor para buscar a próxima página ou None se esta for a última
            página.
          title: End Cursor
        has_next_page:
          default: false
          description: Indica se há mais itens disponíveis após esta página.
          title: Has Next Page
          type: boolean
        items:
          items:
            $ref: '#/components/schemas/ScheduleResponse'
          title: Items
          type: array
        total:
          anyOf:
            - type: integer
            - type: 'null'
          description: >-
            Contagem total opcional de itens (pode ser omitida para melhor
            desempenho).
          title: Total
      required:
        - items
      title: PaginatedResponse[ScheduleResponse]
      type: object
    ProblemDetail:
      description: >-
        Corpo de erro RFC 9457 application/problem+json da API v3.


        detail é mantido do corpo legado {"detail": ...} por
        retrocompatibilidade; os

        outros membros são aditivos. errors contém falhas de validação em nível
        de campo

        (apenas 422).
      properties:
        detail:
          anyOf:
            - type: string
            - type: 'null'
          description: Uma explicação legível por humanos específica para esta ocorrência.
          title: Detail
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Código legível por máquina para recusas de ações bloqueadas (por
            exemplo, "user_frozen", "migrated_session").
          title: Error Code
        errors:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          description: Erros de validação no nível do campo (apenas respostas 422).
          title: Errors
        instance:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Uma referência de URI (o caminho da requisição) para esta
            ocorrência.
          title: Instance
        status:
          description: O código de status HTTP.
          title: Status
          type: integer
        title:
          description: Um breve resumo do tipo de problema, legível para humanos.
          title: Title
          type: string
        type:
          default: about:blank
          description: Uma referência de URI que identifica o tipo de problema.
          title: Type
          type: string
      required:
        - title
        - status
      title: ProblemDetail
      type: object
    ScheduleResponse:
      properties:
        agent:
          enum:
            - devin
            - data_analyst
          title: Agent
          type: string
        bypass_approval:
          default: false
          title: Bypass Approval
          type: boolean
        consecutive_failures:
          title: Consecutive Failures
          type: integer
        created_at:
          format: date-time
          title: Created At
          type: string
        created_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By
        enabled:
          title: Enabled
          type: boolean
        frequency:
          anyOf:
            - type: string
            - type: 'null'
          title: Frequency
        interval_count:
          default: 1
          title: Interval Count
          type: integer
        last_edited_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Edited By
        last_error_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Last Error At
        last_error_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Error Message
        last_executed_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Last Executed At
        name:
          title: Name
          type: string
        notify_on:
          enum:
            - always
            - failure
            - never
          title: Notify On
          type: string
        org_id:
          title: Org Id
          type: string
        platform:
          anyOf:
            - type: string
            - type: 'null'
          title: Platform
        playbook:
          anyOf:
            - $ref: '#/components/schemas/PlaybookInfo'
            - type: 'null'
        prompt:
          title: Prompt
          type: string
        schedule_type:
          default: recurring
          enum:
            - recurring
            - one_time
          title: Schedule Type
          type: string
        scheduled_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Scheduled At
        scheduled_session_id:
          title: Scheduled Session Id
          type: string
        skill_ref:
          anyOf:
            - $ref: '#/components/schemas/SkillReference'
            - type: 'null'
          description: >-
            Skill específica com a qual as sessões são executadas. Use em vez de
            playbook_id em novas configurações.
        slack_channel_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Slack Channel Id
        slack_team_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Slack Team Id
        tags:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Tags
        target_devin_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Target Devin Id
        updated_at:
          format: date-time
          title: Updated At
          type: string
      required:
        - scheduled_session_id
        - org_id
        - created_by
        - name
        - prompt
        - playbook
        - frequency
        - enabled
        - last_executed_at
        - created_at
        - updated_at
        - last_error_at
        - last_error_message
        - consecutive_failures
        - notify_on
        - agent
      title: ScheduleResponse
      type: object
    PlaybookInfo:
      properties:
        playbook_id:
          title: Playbook Id
          type: string
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
      required:
        - playbook_id
        - title
      title: PlaybookInfo
      type: object
    SkillReference:
      description: 'Uma skill específica: o plugin que a distribui e o nome da skill.'
      properties:
        plugin_identity:
          description: >-
            O plugin que distribui a skill: o ID de um pacote importado pela
            organização, p. ex. 'org-playbooks', ou a URL de um plugin Git, p.
            ex. 'https://github.com/acme/tools'.
          maxLength: 256
          minLength: 1
          title: Plugin Identity
          type: string
        skill_name:
          description: Nome da skill nesse plugin.
          maxLength: 128
          minLength: 1
          title: Skill Name
          type: string
      required:
        - plugin_identity
        - skill_name
      title: SkillReference
      type: object
  securitySchemes:
    bearerAuth:
      description: 'Credencial de usuário de serviço (prefixo: cog_)'
      scheme: bearer
      type: http

````

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