Drone Secrets API

The Secrets API from Drone — 1 operation(s) for secrets.

OpenAPI Specification

drone-ci-secrets-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Drone CI REST Builds Secrets API
  version: 1.0.0
  description: Best-effort OpenAPI for the Drone CI REST API, used to manage repositories, builds, secrets, cron jobs, templates, and the current user. Authentication uses a bearer token retrieved from a user's Drone profile page.
  contact:
    name: API Evangelist
    email: kin@apievangelist.com
    url: https://docs.drone.io/api/
servers:
- url: https://drone.example.com
  description: A Drone CI server (self-hosted; substitute your host)
security:
- bearerAuth: []
tags:
- name: Secrets
paths:
  /api/repos/{owner}/{repo}/secrets:
    parameters:
    - $ref: '#/components/parameters/Owner'
    - $ref: '#/components/parameters/Repo'
    get:
      tags:
      - Secrets
      summary: List secrets for a repository
      operationId: listRepoSecrets
      responses:
        '200':
          description: Secrets
    post:
      tags:
      - Secrets
      summary: Create a secret for a repository
      operationId: createRepoSecret
      responses:
        '201':
          description: Secret created
components:
  parameters:
    Owner:
      name: owner
      in: path
      required: true
      schema:
        type: string
    Repo:
      name: repo
      in: path
      required: true
      schema:
        type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer