Skip to content

Otoroshi Admin API API

by maif.local

HTTP BasicHTTPSDevelopment
Open documentation ↗

Overview

Admin API of the Otoroshi reverse proxy

Otoroshi Admin API is a development API from maif.local. Requests are authenticated with HTTP Basic auth. It is served over HTTPS. Its OpenAPI description documents 102 endpoints.

At a glance

Authentication
HTTP Basic
HTTPS
Yes
CORS
Unknown
Category
Development
Base URL
http://otoroshi-api.oto.tools/
Version
1.5.0-dev
Endpoints
102
Spec updated
2021-06-30

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "http://otoroshi-api.oto.tools/api/apikeys" \
  -H "Accept: application/json" \
  -H "Authorization: Basic BASE64_USER_PASSWORD"
JavaScript
const response = await fetch("http://otoroshi-api.oto.tools/api/apikeys", {
  method: "GET",
  headers: {
    "Accept": "application/json",
    "Authorization": "Basic BASE64_USER_PASSWORD",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "http://otoroshi-api.oto.tools/api/apikeys",
    headers={
    "Accept": "application/json",
    "Authorization": "Basic BASE64_USER_PASSWORD",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/api/apikeysGet all api keys
GET/api/authsGet all global auth. module configs
POST/api/authsCreate one global auth. module config
GET/api/auths/{id}Get one global auth. module configs
PUT/api/auths/{id}Update one global auth. module config
PATCH/api/auths/{id}Update one global auth. module config
DELETE/api/auths/{id}Delete one global auth. module config
GET/api/certificatesGet all certificates
POST/api/certificatesCreate one certificate
GET/api/certificates/{id}Get one certificate by id
PUT/api/certificates/{id}Update one certificate by id
PATCH/api/certificates/{id}Update one certificate by id
DELETE/api/certificates/{id}Delete one certificate by id
GET/api/client-validatorsGet all validation authoritiess
POST/api/client-validatorsCreate one validation authorities
GET/api/client-validators/{id}Get one validation authorities by id
PUT/api/client-validators/{id}Update one validation authorities by id
PATCH/api/client-validators/{id}Update one validation authorities by id
DELETE/api/client-validators/{id}Delete one validation authorities by id
GET/api/data-exporter-configsGet all data exporter configs
POST/api/data-exporter-configsCreate a new data exporter config
POST/api/data-exporter-configs/_bulkCreate a new data exporter configs
PUT/api/data-exporter-configs/_bulkUpdate a data exporter configs
PATCH/api/data-exporter-configs/_bulkUpdate a data exporter configs with a diff
DELETE/api/data-exporter-configs/_bulkDelete a data exporter config
GET/api/data-exporter-configs/_templateGet all data exporter configs
GET/api/data-exporter-configs/{dataExporterConfigId}Get a data exporter config
PUT/api/data-exporter-configs/{dataExporterConfigId}Update a data exporter config
PATCH/api/data-exporter-configs/{dataExporterConfigId}Update a data exporter config with a diff
DELETE/api/data-exporter-configs/{dataExporterConfigId}Delete a data exporter config
GET/api/globalconfigGet the full configuration of Otoroshi
PUT/api/globalconfigUpdate the global configuration
PATCH/api/globalconfigUpdate the global configuration with a diff
GET/api/groupsGet all service groups
POST/api/groupsCreate a new service group
GET/api/groups/{groupId}/apikeysGet all api keys for the group of a service
POST/api/groups/{groupId}/apikeysCreate a new api key for a group
GET/api/groups/{groupId}/apikeys/{clientId}Get an api key
PUT/api/groups/{groupId}/apikeys/{clientId}Update an api key
PATCH/api/groups/{groupId}/apikeys/{clientId}Update an api key with a diff
DELETE/api/groups/{groupId}/apikeys/{clientId}Delete an api key
GET/api/groups/{groupId}/apikeys/{clientId}/quotasGet the quota state of an api key
DELETE/api/groups/{groupId}/apikeys/{clientId}/quotasReset the quota state of an api key
GET/api/groups/{serviceGroupId}Get a service group
PUT/api/groups/{serviceGroupId}Update a service group
PATCH/api/groups/{serviceGroupId}Update a service group with a diff
DELETE/api/groups/{serviceGroupId}Delete a service group
GET/api/groups/{serviceGroupId}/servicesGet all services descriptor for a group
POST/api/importImport the full state of Otoroshi as a file
GET/api/liveGet global otoroshi stats
GET/api/live/{id}Get live feed of otoroshi stats
GET/api/otoroshi.jsonExport the full state of Otoroshi
POST/api/otoroshi.jsonImport the full state of Otoroshi
GET/api/scriptsGet all scripts
POST/api/scriptsCreate a new script
POST/api/scripts/_compileCompile a script
GET/api/scripts/{scriptId}Get a script
PUT/api/scripts/{scriptId}Update a script
PATCH/api/scripts/{scriptId}Update a script with a diff
DELETE/api/scripts/{scriptId}Delete a script
GET/api/servicesGet all services
POST/api/servicesCreate a new service descriptor
GET/api/services/{serviceId}Get a service descriptor
PUT/api/services/{serviceId}Update a service descriptor
PATCH/api/services/{serviceId}Update a service descriptor with a diff
DELETE/api/services/{serviceId}Delete a service descriptor
GET/api/services/{serviceId}/apikeysGet all api keys for the group of a service
POST/api/services/{serviceId}/apikeysCreate a new api key for a service
GET/api/services/{serviceId}/apikeys/{clientId}Get an api key
PUT/api/services/{serviceId}/apikeys/{clientId}Update an api key
PATCH/api/services/{serviceId}/apikeys/{clientId}Update an api key with a diff
DELETE/api/services/{serviceId}/apikeys/{clientId}Delete an api key
GET/api/services/{serviceId}/apikeys/{clientId}/groupGet the group of an api key
GET/api/services/{serviceId}/apikeys/{clientId}/quotasGet the quota state of an api key
DELETE/api/services/{serviceId}/apikeys/{clientId}/quotasReset the quota state of an api key
GET/api/services/{serviceId}/targetsGet a service descriptor targets
POST/api/services/{serviceId}/targetsAdd a target to a service descriptor
PATCH/api/services/{serviceId}/targetsUpdate a service descriptor targets
DELETE/api/services/{serviceId}/targetsDelete a service descriptor target
GET/api/services/{serviceId}/templateGet a service descriptor error template
POST/api/services/{serviceId}/templateCreate a service descriptor error template
PUT/api/services/{serviceId}/templateUpdate an error template to a service descriptor
DELETE/api/services/{serviceId}/templateDelete a service descriptor error template
POST/api/snowmonkey/_startStart the Snow Monkey
POST/api/snowmonkey/_stopStop the Snow Monkey
GET/api/snowmonkey/configGet current Snow Monkey config
PUT/api/snowmonkey/configUpdate current Snow Monkey config
PATCH/api/snowmonkey/configUpdate current Snow Monkey config
GET/api/snowmonkey/outagesGet all current Snow Monkey ourages
DELETE/api/snowmonkey/outagesReset Snow Monkey Outages for the day
GET/api/verifiersGet all global JWT verifiers
POST/api/verifiersCreate one global JWT verifiers
GET/api/verifiers/{verifierId}Get one global JWT verifiers
PUT/api/verifiers/{verifierId}Update one global JWT verifiers
PATCH/api/verifiers/{verifierId}Update one global JWT verifiers
DELETE/api/verifiers/{verifierId}Delete one global JWT verifiers
GET/healthReturn current Otoroshi health
GET/linesGet all environments
GET/lines/{line}/servicesGet all services for an environment
GET/new/apikeyGet a template of an Otoroshi Api Key

Showing the first 100 of 102 endpoints; the full list is in the documentation.

Questions

Does the Otoroshi Admin API API need an API key?

Yes. The Otoroshi Admin API API uses HTTP Basic authentication; the documentation explains how to get credentials.

Does the Otoroshi Admin API API support HTTPS?

Yes, the Otoroshi Admin API API is served over HTTPS.

How many endpoints does the Otoroshi Admin API API have?

Its OpenAPI description lists 102 endpoints in version 1.5.0-dev. The first 100 are shown on this page.

What are alternatives to the Otoroshi Admin API API?

Other Development APIs include Cloudflare, Azure DevOps, IPify, App Store Connect API, StackExchange.

Compare alternatives →

Listed from APIs.guru (CC0).