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

# Haal Schema Op

> Haalt een enkel schema op aan de hand van zijn ID.



## OpenAPI

````yaml nl/openapi/schedules.json GET /v1/schedules/{schedule_id}
openapi: 3.0.3
info:
  title: Schedules API
  version: 1.0.0
servers:
  - url: https://api.olostep.com
security: []
paths:
  /v1/schedules/{schedule_id}:
    get:
      summary: Haal Schema op
      description: Haalt een enkel schema op via zijn ID.
      parameters:
        - name: schedule_id
          in: path
          required: true
          description: Unieke identificatie voor het schema. Moet beginnen met 'schedule_'.
          schema:
            type: string
            pattern: ^schedule_
      responses:
        '200':
          description: Schema succesvol opgehaald.
          content:
            application/json:
              schema:
                type: object
                properties:
                  schedule:
                    type: object
                    properties:
                      team_id:
                        type: string
                        description: Teamidentificatie
                      schedule_id:
                        type: string
                        description: Unieke schema-identificator
                      type:
                        type: string
                        enum:
                          - recurring
                          - onetime
                        description: Type schema
                      endpoint:
                        type: string
                        description: De endpoint URL
                      payload:
                        type: object
                        description: De payload om mee te sturen met de API-aanroep
                      cron_expression:
                        type: string
                        description: >-
                          Cron-expressie (alleen aanwezig voor terugkerende
                          schema's)
                      execute_at:
                        type: string
                        format: date-time
                        description: >-
                          Uitvoeringsdatetime (alleen aanwezig voor eenmalige
                          schema's)
                      expression_timezone:
                        type: string
                        description: Tijdzone voor het schema
                      text:
                        type: string
                        description: >-
                          Natuurlijke taaltekst gebruikt om cron-expressie te
                          genereren
                      schedule_name:
                        type: string
                        description: Interne schedulenaam in EventBridge
                      schedule_group:
                        type: string
                        description: Naam van schemagroep
                      created_at:
                        type: string
                        format: date-time
                        description: ISO 8601 datetime wanneer het schema is aangemaakt
                      updated_at:
                        type: string
                        format: date-time
                        description: >-
                          ISO 8601 datum en tijdstip wanneer het schema voor het
                          laatst is bijgewerkt
                      state:
                        type: string
                        enum:
                          - ENABLED
                          - DELETED
                        description: Huidige status van het schema
                      method:
                        type: string
                        enum:
                          - GET
                          - POST
                        description: HTTP-methode voor de geplande aanroep
        '400':
          description: >-
            Foutieve aanvraag vanwege ongeldig schedule_id-formaat. Schema-ID
            moet beginnen met 'schedule_'.
        '401':
          description: Ongeldige API-sleutel.
        '404':
          description: Schema niet gevonden voor de opgegeven ID.
        '500':
          description: Interne serverfout bij het ophalen van het schema.
      security:
        - Authorization: []
components:
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
      description: >-
        Bearer authenticatie header in de vorm Bearer <token>, waar <token> jouw
        auth token is.

````