Releasesv0.1.0
Api referenceEndpointsAdmin

The providers of one tenant, each with its switch (instance admin)

GET
/v1/admin/tenants/{tenant_id}/providers

Every provider the instance knows, in the order of GET /v1/admin/providers, with the tenant's switch: on unless an instance admin turned it off. Recorded as config.read. See docs/admin-api.md.

Authorization

tenantKey
headerAuthorizationBearer <token>

Tenant API key, ohs_sk_ + 43 base62 characters.

Path Parameters

tenant_id*string

The id of a tenant; any other value is a 404.

Formatuuid

Header Parameters

Authorization*string

The tenant API key, as a bearer secret.

Response Body

The providers.

application/json
  1. response
data*array<>
curl -X GET 'http://localhost:8080/v1/admin/tenants/497f6eca-6276-4993-bfeb-53cbbbba6f08/providers' \  -H 'Authorization: Bearer ohs_sk_...'
{  "data": [    {      "slug": "oura",      "name": "Oura",      "kinds": [        "oauth"      ],      "instance_status": "active",      "enabled": true,      "own_keys": true,      "available": true,      "updated_at": "2019-08-24T14:15:22Z"    }  ]}
Edit on GitHub