Overview
This section describes how to use the Diversion API to build custom integrations and clients.Authentication
All API endpoints, unless stated otherwise, are authenticated using Bearer tokens.Base URL
All API endpoints are relative to the base URLhttps://api.diversion.dev/v0.
Making Your First Request
Once you have your token, you can test that it works by making a request to the/auth/test endpoint:
Real-World Example: Create a New Repo
See the endpoint’s full documentation here.Error handling
Some common errors can be returned from most API endpoints and are listed below. Errors that are specific to an API endpoint are listed in the endpoint’s documentation.Error format
All errors are returned in the following format:View JSON Schema
View JSON Schema

