Dropbox Template API

_md__OpenApi::TAG::TEMPLATE::DESCRIPTION

OpenAPI Specification

dropbox-template-api-openapi.yml Raw ↑
openapi: 3.0.0
info:
  title: Dropbox API Reference Account Template API
  description: "The powerful, yet simple, Dropbox API allows you to manage and control content and team settings programmatically and extend Dropbox capabilities in new and powerful ways. This is a collection that includes requests to all endpoints in the Dropbox API. \n\nThe Dropbox API is divided in two groups of endpoints: User Endpoints and Business Endpoints. Operations that would most likely be executed by a user, such as file operations, are in the User Endpoints folder. Operations that would most likely be executed by a team administrator, such as adding users to groups, live in the Business Endpoints folder. \n\nIf you are new to Dropbox Business and Team Administration, please have a look at the [Dropobox Admin Guide](https://help.dropbox.com/guide/admin/how-to-get-started#dropbox-admin-guide). \n\nIf you want more information on how to use our API please refer to our [Developer Portal](https://www.dropbox.com/developers). \n\n# What's in the collection?\n\nThe endpoints are organized in the following folders:\n* account\n* auth\n* check\n* contacts\n* file_properties\n* file_requests\n* files\n* sharing\n* team\n* team_log\n* users\n\n# Authorization\n\n## OAuth 2.0 for API Access\nDropbox uses OAuth 2.0, an open specification, to authorize access to data. To get an OAuth token from Dropbox to enable Postman to access your Dropbox account via the API you’ll need to create a new app on the DBX Platform.\n\n## Creating an App on the DBX Platform\nNavigate to https://www.dropbox.com/developers/apps and select “Create app” \n1. Choose an API  \n2. Choose the type of access you need \n3. Give your app a name  \n4. Choose the Dropbox account that will own your app  \n\nFor reference, please use the [Dropbox OAuth guide](https://www.dropbox.com/lp/developers/reference/oauth-guide) \n\n## Generating an Access Token\nOnce you select “Create app” a page will load that displays information about your newly created app. To generate an access token scroll down to “OAuth 2” and click “Generate” beneath “Generated access token.” The token will display as a long string of characters. Copy this token for use with the Postman Collection.\n\n## Adding an Access Token to the requests\nIn the Postman client, click on the three dots to the right of the collection name to \"View more actions.\"\n\n![Screenshot of adding access token](https://www.dropbox.com/s/sfebu9ai76cbq39/Screen%20Shot%202020-10-28%20at%2012.50.56%20AM.png?raw=1)\n\nThen, click \"Edit.\"\n\nClick on the \"Variables\" tab and, in the row for the `access_token` variable, paste your access token in the `CURRENT VALUE` column. The default value is `your-access-token-here`.\n\n![Screenshot of adding access token](https://www.dropbox.com/s/ahnbxwe6oscjues/Screen%20Shot%202020-10-28%20at%2012.51.13%20AM.png?raw=1)\n\nFor information on sessions and variables in Postman see the blog post at https://blog.postman.com/sessions-faq/.\n\n# Notes\n* Dropbox also has a Postman Collection in the API Network to help administrators with team management workflows. It is called [Dropbox Team Admin Workflows](). \n\n"
  version: 1.0.0
servers:
- url: https://api.dropbox.com
security:
- bearerAuth: []
tags:
- name: Template
  description: _md__OpenApi::TAG::TEMPLATE::DESCRIPTION
paths:
  /template/add_user/{template_id}:
    post:
      tags:
      - Template
      summary: Dropbox _t__TemplateAddUser::SUMMARY
      description: _t__TemplateAddUser::DESCRIPTION
      operationId: templateAddUser
      parameters:
      - name: template_id
        in: path
        description: _t__TemplateAddUser::TEMPLATE_ID
        required: true
        schema:
          type: string
        example: f57db65d3f933b5316d398057a36176831451a35
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TemplateAddUserRequest'
            examples:
              default_example:
                $ref: '#/components/examples/TemplateAddUserRequestDefaultExample'
      responses:
        '200':
          description: successful operation
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-Ratelimit-Reset:
              $ref: '#/components/headers/X-Ratelimit-Reset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TemplateGetResponse'
              examples:
                default_example:
                  $ref: '#/components/examples/TemplateAddUserResponseExample'
        4XX:
          description: failed_operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                400_example:
                  $ref: '#/components/examples/Error400ResponseExample'
                401_example:
                  $ref: '#/components/examples/Error401ResponseExample'
                402_example:
                  $ref: '#/components/examples/Error402ResponseExample'
                403_example:
                  $ref: '#/components/examples/Error403ResponseExample'
                404_example:
                  $ref: '#/components/examples/Error404ResponseExample'
                4XX_example:
                  $ref: '#/components/examples/Error4XXResponseExample'
      security:
      - api_key: []
      - oauth2:
        - template_access
      x-codeSamples:
      - lang: PHP
        label: PHP
        source:
          $ref: examples/TemplateAddUser.php
      - lang: C#
        label: C#
        source:
          $ref: examples/TemplateAddUser.cs
      - lang: JavaScript
        label: JavaScript
        source:
          $ref: examples/TemplateAddUser.js
      - lang: TypeScript
        label: TypeScript
        source:
          $ref: examples/TemplateAddUser.ts
      - lang: Java
        label: Java
        source:
          $ref: examples/TemplateAddUser.java
      - lang: Ruby
        label: Ruby
        source:
          $ref: examples/TemplateAddUser.rb
      - lang: Python
        label: Python
        source:
          $ref: examples/TemplateAddUser.py
      - lang: cURL
        label: cURL
        source:
          $ref: examples/TemplateAddUser.sh
      x-meta:
        seo:
          title: _t__TemplateAddUser::SEO::TITLE
          description: _t__TemplateAddUser::SEO::DESCRIPTION
  /template/create:
    post:
      tags:
      - Template
      summary: Dropbox _t__TemplateCreate::SUMMARY
      description: _t__TemplateCreate::DESCRIPTION
      operationId: templateCreate
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TemplateCreateRequest'
            examples:
              default_example:
                $ref: '#/components/examples/TemplateCreateRequestDefaultExample'
              form_fields_per_document:
                $ref: '#/components/examples/TemplateCreateRequestFormFieldsPerDocumentExample'
              form_field_groups:
                $ref: '#/components/examples/TemplateCreateRequestFormFieldGroupsExample'
              form_field_rules:
                $ref: '#/components/examples/TemplateCreateRequestFormFieldRulesExample'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/TemplateCreateRequest'
      responses:
        '200':
          description: successful operation
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-Ratelimit-Reset:
              $ref: '#/components/headers/X-Ratelimit-Reset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TemplateCreateResponse'
              examples:
                default_example:
                  $ref: '#/components/examples/TemplateCreateResponseExample'
        4XX:
          description: failed_operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                400_example:
                  $ref: '#/components/examples/Error400ResponseExample'
                401_example:
                  $ref: '#/components/examples/Error401ResponseExample'
                402_example:
                  $ref: '#/components/examples/Error402ResponseExample'
                403_example:
                  $ref: '#/components/examples/Error403ResponseExample'
                404_example:
                  $ref: '#/components/examples/Error404ResponseExample'
                409_example:
                  $ref: '#/components/examples/Error409ResponseExample'
                4XX_example:
                  $ref: '#/components/examples/Error4XXResponseExample'
      security:
      - api_key: []
      - oauth2:
        - template_access
      x-codeSamples:
      - lang: PHP
        label: PHP
        source:
          $ref: examples/TemplateCreate.php
      - lang: C#
        label: C#
        source:
          $ref: examples/TemplateCreate.cs
      - lang: JavaScript
        label: JavaScript
        source:
          $ref: examples/TemplateCreate.js
      - lang: TypeScript
        label: TypeScript
        source:
          $ref: examples/TemplateCreate.ts
      - lang: Java
        label: Java
        source:
          $ref: examples/TemplateCreate.java
      - lang: Ruby
        label: Ruby
        source:
          $ref: examples/TemplateCreate.rb
      - lang: Python
        label: Python
        source:
          $ref: examples/TemplateCreate.py
      - lang: cURL
        label: cURL
        source:
          $ref: examples/TemplateCreate.sh
      x-meta:
        seo:
          title: _t__TemplateCreate::SEO::TITLE
          description: _t__TemplateCreate::SEO::DESCRIPTION
  /template/create_embedded_draft:
    post:
      tags:
      - Template
      summary: Dropbox _t__TemplateCreateEmbeddedDraft::SUMMARY
      description: _t__TemplateCreateEmbeddedDraft::DESCRIPTION
      operationId: templateCreateEmbeddedDraft
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TemplateCreateEmbeddedDraftRequest'
            examples:
              default_example:
                $ref: '#/components/examples/TemplateCreateEmbeddedDraftRequestDefaultExample'
              form_fields_per_document:
                $ref: '#/components/examples/TemplateCreateEmbeddedDraftRequestFormFieldsPerDocumentExample'
              form_field_groups:
                $ref: '#/components/examples/TemplateCreateEmbeddedDraftRequestFormFieldGroupsExample'
              form_field_rules:
                $ref: '#/components/examples/TemplateCreateEmbeddedDraftRequestFormFieldRulesExample'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/TemplateCreateEmbeddedDraftRequest'
      responses:
        '200':
          description: successful operation
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-Ratelimit-Reset:
              $ref: '#/components/headers/X-Ratelimit-Reset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TemplateCreateEmbeddedDraftResponse'
              examples:
                default_example:
                  $ref: '#/components/examples/TemplateCreateEmbeddedDraftResponseExample'
        4XX:
          description: failed_operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                400_example:
                  $ref: '#/components/examples/Error400ResponseExample'
                401_example:
                  $ref: '#/components/examples/Error401ResponseExample'
                402_example:
                  $ref: '#/components/examples/Error402ResponseExample'
                403_example:
                  $ref: '#/components/examples/Error403ResponseExample'
                404_example:
                  $ref: '#/components/examples/Error404ResponseExample'
                409_example:
                  $ref: '#/components/examples/Error409ResponseExample'
                4XX_example:
                  $ref: '#/components/examples/Error4XXResponseExample'
      security:
      - api_key: []
      - oauth2:
        - template_access
      x-codeSamples:
      - lang: PHP
        label: PHP
        source:
          $ref: examples/TemplateCreateEmbeddedDraft.php
      - lang: C#
        label: C#
        source:
          $ref: examples/TemplateCreateEmbeddedDraft.cs
      - lang: JavaScript
        label: JavaScript
        source:
          $ref: examples/TemplateCreateEmbeddedDraft.js
      - lang: TypeScript
        label: TypeScript
        source:
          $ref: examples/TemplateCreateEmbeddedDraft.ts
      - lang: Java
        label: Java
        source:
          $ref: examples/TemplateCreateEmbeddedDraft.java
      - lang: Ruby
        label: Ruby
        source:
          $ref: examples/TemplateCreateEmbeddedDraft.rb
      - lang: Python
        label: Python
        source:
          $ref: examples/TemplateCreateEmbeddedDraft.py
      - lang: cURL
        label: cURL
        source:
          $ref: examples/TemplateCreateEmbeddedDraft.sh
      x-meta:
        seo:
          title: _t__TemplateCreateEmbeddedDraft::SEO::TITLE
          description: _t__TemplateCreateEmbeddedDraft::SEO::DESCRIPTION
  /template/delete/{template_id}:
    post:
      tags:
      - Template
      summary: Dropbox _t__TemplateDelete::SUMMARY
      description: _t__TemplateDelete::DESCRIPTION
      operationId: templateDelete
      parameters:
      - name: template_id
        in: path
        description: _t__TemplateDelete::TEMPLATE_ID
        required: true
        schema:
          type: string
        example: f57db65d3f933b5316d398057a36176831451a35
      responses:
        '200':
          description: successful operation
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-Ratelimit-Reset:
              $ref: '#/components/headers/X-Ratelimit-Reset'
          content:
            application/json: {}
        4XX:
          description: failed_operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                400_example:
                  $ref: '#/components/examples/Error400ResponseExample'
                401_example:
                  $ref: '#/components/examples/Error401ResponseExample'
                402_example:
                  $ref: '#/components/examples/Error402ResponseExample'
                403_example:
                  $ref: '#/components/examples/Error403ResponseExample'
                404_example:
                  $ref: '#/components/examples/Error404ResponseExample'
                409_example:
                  $ref: '#/components/examples/Error409ResponseExample'
                4XX_example:
                  $ref: '#/components/examples/Error4XXResponseExample'
      security:
      - api_key: []
      - oauth2:
        - template_access
      x-codeSamples:
      - lang: PHP
        label: PHP
        source:
          $ref: examples/TemplateDelete.php
      - lang: C#
        label: C#
        source:
          $ref: examples/TemplateDelete.cs
      - lang: JavaScript
        label: JavaScript
        source:
          $ref: examples/TemplateDelete.js
      - lang: TypeScript
        label: TypeScript
        source:
          $ref: examples/TemplateDelete.ts
      - lang: Java
        label: Java
        source:
          $ref: examples/TemplateDelete.java
      - lang: Ruby
        label: Ruby
        source:
          $ref: examples/TemplateDelete.rb
      - lang: Python
        label: Python
        source:
          $ref: examples/TemplateDelete.py
      - lang: cURL
        label: cURL
        source:
          $ref: examples/TemplateDelete.sh
      x-meta:
        seo:
          title: _t__TemplateDelete::SEO::TITLE
          description: _t__TemplateDelete::SEO::DESCRIPTION
  /template/files/{template_id}:
    get:
      tags:
      - Template
      summary: Dropbox _t__TemplateFiles::SUMMARY
      description: _t__TemplateFiles::DESCRIPTION
      operationId: templateFiles
      parameters:
      - name: template_id
        in: path
        description: _t__TemplateFiles::TEMPLATE_ID
        required: true
        schema:
          type: string
        example: f57db65d3f933b5316d398057a36176831451a35
      - name: file_type
        in: query
        description: _t__TemplateFiles::FILE_TYPE
        schema:
          type: string
          enum:
          - pdf
          - zip
      responses:
        '200':
          description: successful operation
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-Ratelimit-Reset:
              $ref: '#/components/headers/X-Ratelimit-Reset'
          content:
            application/pdf:
              schema:
                type: string
                format: binary
            application/zip:
              schema:
                type: string
                format: binary
        4XX:
          description: failed_operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                400_example:
                  $ref: '#/components/examples/Error400ResponseExample'
                401_example:
                  $ref: '#/components/examples/Error401ResponseExample'
                402_example:
                  $ref: '#/components/examples/Error402ResponseExample'
                403_example:
                  $ref: '#/components/examples/Error403ResponseExample'
                404_example:
                  $ref: '#/components/examples/Error404ResponseExample'
                409_example:
                  $ref: '#/components/examples/Error409ResponseExample'
                422_example:
                  $ref: '#/components/examples/Error422ResponseExample'
                429_example:
                  $ref: '#/components/examples/Error429ResponseExample'
                4XX_example:
                  $ref: '#/components/examples/Error4XXResponseExample'
      security:
      - api_key: []
      - oauth2:
        - template_access
      x-codeSamples:
      - lang: PHP
        label: PHP
        source:
          $ref: examples/TemplateFiles.php
      - lang: C#
        label: C#
        source:
          $ref: examples/TemplateFiles.cs
      - lang: JavaScript
        label: JavaScript
        source:
          $ref: examples/TemplateFiles.js
      - lang: TypeScript
        label: TypeScript
        source:
          $ref: examples/TemplateFiles.ts
      - lang: Java
        label: Java
        source:
          $ref: examples/TemplateFiles.java
      - lang: Ruby
        label: Ruby
        source:
          $ref: examples/TemplateFiles.rb
      - lang: Python
        label: Python
        source:
          $ref: examples/TemplateFiles.py
      - lang: cURL
        label: cURL
        source:
          $ref: examples/TemplateFiles.sh
      x-meta:
        seo:
          title: _t__TemplateFiles::SEO::TITLE
          description: _t__TemplateFiles::SEO::DESCRIPTION
  /template/files_as_data_uri/{template_id}:
    get:
      tags:
      - Template
      summary: Dropbox _t__TemplateFilesAsDataUri::SUMMARY
      description: _t__TemplateFilesAsDataUri::DESCRIPTION
      operationId: templateFilesAsDataUri
      parameters:
      - name: template_id
        in: path
        description: _t__TemplateFiles::TEMPLATE_ID
        required: true
        schema:
          type: string
        example: f57db65d3f933b5316d398057a36176831451a35
      responses:
        '200':
          description: successful operation
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-Ratelimit-Reset:
              $ref: '#/components/headers/X-Ratelimit-Reset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FileResponseDataUri'
              examples:
                default_example:
                  $ref: '#/components/examples/TemplateFilesResponseExample'
        4XX:
          description: failed_operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                400_example:
                  $ref: '#/components/examples/Error400ResponseExample'
                401_example:
                  $ref: '#/components/examples/Error401ResponseExample'
                402_example:
                  $ref: '#/components/examples/Error402ResponseExample'
                403_example:
                  $ref: '#/components/examples/Error403ResponseExample'
                404_example:
                  $ref: '#/components/examples/Error404ResponseExample'
                409_example:
                  $ref: '#/components/examples/Error409ResponseExample'
                422_example:
                  $ref: '#/components/examples/Error422ResponseExample'
                429_example:
                  $ref: '#/components/examples/Error429ResponseExample'
                4XX_example:
                  $ref: '#/components/examples/Error4XXResponseExample'
      security:
      - api_key: []
      - oauth2:
        - template_access
      x-codeSamples:
      - lang: PHP
        label: PHP
        source:
          $ref: examples/TemplateFilesAsDataUri.php
      - lang: C#
        label: C#
        source:
          $ref: examples/TemplateFilesAsDataUri.cs
      - lang: JavaScript
        label: JavaScript
        source:
          $ref: examples/TemplateFilesAsDataUri.js
      - lang: TypeScript
        label: TypeScript
        source:
          $ref: examples/TemplateFilesAsDataUri.ts
      - lang: Java
        label: Java
        source:
          $ref: examples/TemplateFilesAsDataUri.java
      - lang: Ruby
        label: Ruby
        source:
          $ref: examples/TemplateFilesAsDataUri.rb
      - lang: Python
        label: Python
        source:
          $ref: examples/TemplateFilesAsDataUri.py
      - lang: cURL
        label: cURL
        source:
          $ref: examples/TemplateFilesAsDataUri.sh
      x-meta:
        seo:
          title: _t__TemplateFiles::SEO::TITLE
          description: _t__TemplateFiles::SEO::DESCRIPTION
  /template/files_as_file_url/{template_id}:
    get:
      tags:
      - Template
      summary: Dropbox _t__TemplateFilesAsFileUrl::SUMMARY
      description: _t__TemplateFilesAsFileUrl::DESCRIPTION
      operationId: templateFilesAsFileUrl
      parameters:
      - name: template_id
        in: path
        description: _t__TemplateFiles::TEMPLATE_ID
        required: true
        schema:
          type: string
        example: f57db65d3f933b5316d398057a36176831451a35
      - name: force_download
        in: query
        description: _t__TemplateFiles::FORCE_DOWNLOAD
        schema:
          type: integer
          default: 1
      responses:
        '200':
          description: successful operation
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-Ratelimit-Reset:
              $ref: '#/components/headers/X-Ratelimit-Reset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FileResponse'
              examples:
                default_example:
                  $ref: '#/components/examples/TemplateFilesResponseExample'
        4XX:
          description: failed_operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                400_example:
                  $ref: '#/components/examples/Error400ResponseExample'
                401_example:
                  $ref: '#/components/examples/Error401ResponseExample'
                402_example:
                  $ref: '#/components/examples/Error402ResponseExample'
                403_example:
                  $ref: '#/components/examples/Error403ResponseExample'
                404_example:
                  $ref: '#/components/examples/Error404ResponseExample'
                409_example:
                  $ref: '#/components/examples/Error409ResponseExample'
                422_example:
                  $ref: '#/components/examples/Error422ResponseExample'
                429_example:
                  $ref: '#/components/examples/Error429ResponseExample'
                4XX_example:
                  $ref: '#/components/examples/Error4XXResponseExample'
      security:
      - api_key: []
      - oauth2:
        - template_access
      x-codeSamples:
      - lang: PHP
        label: PHP
        source:
          $ref: examples/TemplateFilesAsFileUrl.php
      - lang: C#
        label: C#
        source:
          $ref: examples/TemplateFilesAsFileUrl.cs
      - lang: JavaScript
        label: JavaScript
        source:
          $ref: examples/TemplateFilesAsFileUrl.js
      - lang: TypeScript
        label: TypeScript
        source:
          $ref: examples/TemplateFilesAsFileUrl.ts
      - lang: Java
        label: Java
        source:
          $ref: examples/TemplateFilesAsFileUrl.java
      - lang: Ruby
        label: Ruby
        source:
          $ref: examples/TemplateFilesAsFileUrl.rb
      - lang: Python
        label: Python
        source:
          $ref: examples/TemplateFilesAsFileUrl.py
      - lang: cURL
        label: cURL
        source:
          $ref: examples/TemplateFilesAsFileUrl.sh
      x-meta:
        seo:
          title: _t__TemplateFiles::SEO::TITLE
          description: _t__TemplateFiles::SEO::DESCRIPTION
  /template/{template_id}:
    get:
      tags:
      - Template
      summary: Dropbox _t__TemplateGet::SUMMARY
      description: _t__TemplateGet::DESCRIPTION
      operationId: templateGet
      parameters:
      - name: template_id
        in: path
        description: _t__TemplateGet::TEMPLATE_ID
        required: true
        schema:
          type: string
        example: f57db65d3f933b5316d398057a36176831451a35
      responses:
        '200':
          description: successful operation
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-Ratelimit-Reset:
              $ref: '#/components/headers/X-Ratelimit-Reset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TemplateGetResponse'
              examples:
                default_example:
                  $ref: '#/components/examples/TemplateGetResponseExample'
        4XX:
          description: failed_operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                400_example:
                  $ref: '#/components/examples/Error400ResponseExample'
                401_example:
                  $ref: '#/components/examples/Error401ResponseExample'
                402_example:
                  $ref: '#/components/examples/Error402ResponseExample'
                403_example:
                  $ref: '#/components/examples/Error403ResponseExample'
                404_example:
                  $ref: '#/components/examples/Error404ResponseExample'
                429_example:
                  $ref: '#/components/examples/Error429ResponseExample'
                4XX_example:
                  $ref: '#/components/examples/Error4XXResponseExample'
      security:
      - api_key: []
      - oauth2:
        - template_access
      x-codeSamples:
      - lang: PHP
        label: PHP
        source:
          $ref: examples/TemplateGet.php
      - lang: C#
        label: C#
        source:
          $ref: examples/TemplateGet.cs
      - lang: JavaScript
        label: JavaScript
        source:
          $ref: examples/TemplateGet.js
      - lang: TypeScript
        label: TypeScript
        source:
          $ref: examples/TemplateGet.ts
      - lang: Java
        label: Java
        source:
          $ref: examples/TemplateGet.java
      - lang: Ruby
        label: Ruby
        source:
          $ref: examples/TemplateGet.rb
      - lang: Python
        label: Python
        source:
          $ref: examples/TemplateGet.py
      - lang: cURL
        label: cURL
        source:
          $ref: examples/TemplateGet.sh
      x-meta:
        seo:
          title: _t__TemplateGet::SEO::TITLE
          description: _t__TemplateGet::SEO::DESCRIPTION
  /template/list:
    get:
      tags:
      - Template
      summary: Dropbox _t__TemplateList::SUMMARY
      description: _t__TemplateList::DESCRIPTION
      operationId: templateList
      parameters:
      - name: account_id
        in: query
        description: _t__TemplateList::ACCOUNT_ID
        schema:
          type: string
      - name: page
        in: query
        description: _t__TemplateList::PAGE
        schema:
          type: integer
          default: 1
      - name: page_size
        in: query
        description: _t__TemplateList::PAGE_SIZE
        schema:
          type: integer
          default: 20
          maximum: 100
          minimum: 1
      - name: query
        in: query
        description: _t__TemplateList::QUERY
        schema:
          type: string
      responses:
        '200':
          description: successful operation
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-Ratelimit-Reset:
              $ref: '#/components/headers/X-Ratelimit-Reset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TemplateListResponse'
              examples:
                default_example:
                  $ref: '#/components/examples/TemplateListResponseExample'
        4XX:
          description: failed_operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                400_example:
                  $ref: '#/components/examples/Error400ResponseExample'
                401_example:
                  $ref: '#/components/examples/Error401ResponseExample'
                402_example:
                  $ref: '#/components/examples/Error402ResponseExample'
                403_example:
                  $ref: '#/components/examples/Error403ResponseExample'
                409_example:
                  $ref: '#/components/examples/Error409ResponseExample'
                429_example:
                  $ref: '#/components/examples/Error429ResponseExample'
                4XX_example:
                  $ref: '#/components/examples/Error4XXResponseExample'
      security:
      - api_key: []
      - oauth2:
        - template_access
      x-codeSamples:
      - lang: PHP
        label: PHP
        source:
          $ref: examples/TemplateList.p

# --- truncated at 32 KB (75 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/dropbox/refs/heads/main/openapi/dropbox-template-api-openapi.yml