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

# Retorna um curso

> Retorna um curso específico através do ID.



## OpenAPI

````yaml GET /api/v1/courses/{id}
openapi: 3.1.0
info:
  title: MemberKit
  description: ''
  version: 1.0.0
servers: []
security:
  - apikey-query-api_key: []
tags:
  - name: academies
  - name: courses
  - name: sections
  - name: lessons
  - name: memberships
  - name: classrooms
  - name: rankings
  - name: users
  - name: scores
  - name: quizzes
  - name: hooks
  - name: comments
paths:
  /api/v1/courses/{id}:
    get:
      tags:
        - courses
      summary: Retorna um curso
      description: Retorna um curso específico através do ID.
      parameters:
        - name: id
          in: path
          description: ID do curso.
          required: true
          example: 0
          schema:
            type: integer
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CourseDetails'
          headers: {}
      deprecated: false
      security:
        - apikey-query-api_key: []
components:
  schemas:
    CourseDetails:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        description:
          type: string
        position:
          type: integer
        image_url:
          type:
            - string
            - 'null'
        page_checkout_url:
          type:
            - string
            - 'null'
        duration:
          type: integer
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        category:
          anyOf:
            - $ref: '#/components/schemas/Category'
            - type: 'null'
        sections:
          type: array
          items:
            type: object
            properties:
              id:
                type: integer
              name:
                type: string
              position:
                type: integer
              slug:
                type: string
              description:
                type: string
              created_at:
                type: string
                format: date-time
              updated_at:
                type: string
                format: date-time
              lessons:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: integer
                    position:
                      type: integer
                    slug:
                      type: string
                    title:
                      type: string
                  required:
                    - id
                    - position
                    - slug
                    - title
            required:
              - id
              - name
              - position
              - slug
              - description
              - created_at
              - updated_at
              - lessons
      required:
        - id
        - name
        - description
        - position
        - image_url
        - page_checkout_url
        - duration
        - created_at
        - updated_at
    Category:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        position:
          type: integer
      required:
        - id
        - name
        - position
  securitySchemes:
    apikey-query-api_key:
      type: apiKey
      in: query
      name: api_key

````