Skip to content

Latest commit

 

History

History
executable file
·
68 lines (51 loc) · 1.83 KB

overview.md

File metadata and controls

executable file
·
68 lines (51 loc) · 1.83 KB
date title weight aliases related description
2000-01-01 00:00:00 +0005
Overview
1
/api-overview/
/api-authentication/
items
name path
Build Endpoint
builds/_index.md
name path
Cron Endpoint
cron/_index.md
name path
Repository Endpoint
repos/_index.md
name path
Secrets Endpoint
secrets/_index.md
name path
User Endpoint
user/_index.md
name path
Users Endpoint
users/_index.md
Overview of the remote API.

Drone provides a comprehensive remote API for interacting with the Drone server. This section of the documents provides instructions for authenticating and using the remote API.

Authorization

The remote API uses access tokens to authorize requests. You can retrieve an access token in the Drone user interface by navigating to your user profile.

Authorization to the API is performed using the HTTP Authorization header. Provide your token as the bearer token value.

  • Example Header.

    Authorization: Bearer AKIAIOSFODNN7EXAMPLE
    
  • Example Request.

    curl -X GET "http://localhost:8080/api/user" \
      -H "Authorization: Bearer AKIAIOSFODNN7EXAMPLE"
    

Libraries

Drone provides the following official libraries for integrating with the remote API:

Community libraries: