API Reference
scopes
2 endpoints
/oauth2/scopesGet Scope Metadata
Get grouped scope metadata for consent screen.
Groups scopes by category and provides appropriate consent descriptions based on the level of access requested. Scopes with requires_ownership=True are flagged as requiring resource-level access (vs personal resources).
Query parameters
| scopes* | string | Space-separated list of scope names |
Responses
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| groups* | ScopeGroup[] | Scopes grouped by category with combined descriptions | ||||||||||||||||||
array items · ScopeGroup
| ||||||||||||||||||||
| Field | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| detail | ValidationError[] | |||||||||||||
array items · ValidationError
| ||||||||||||||
Example request
curl -X GET "https://api.davi.social/oauth2/scopes" \
-H "Authorization: Bearer <token>"/oauth2/client-infoGet Client Info
Get OAuth app details for consent pages and login banners.
Unauthenticated endpoint. Returns app info with icon (fallback to org logo), organization details, and optionally scope groups.
Query parameters
| client_id* | string | OAuth2 client_id |
| with_scopes | boolean | default: false |
| scopes | string | null |
Responses
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| client* | ClientInfo | |||||||||||||||||||
object · ClientInfo
| ||||||||||||||||||||
| organization* | OrganizationInfo | |||||||||||||||||||
object · OrganizationInfo
| ||||||||||||||||||||
| scope_groups | ScopeGroup[] | null | |||||||||||||||||||
array items · ScopeGroup
| ||||||||||||||||||||
| Field | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| detail | ValidationError[] | |||||||||||||
array items · ValidationError
| ||||||||||||||
Example request
curl -X GET "https://api.davi.social/oauth2/client-info" \
-H "Authorization: Bearer <token>"