API Reference

scopes

2 endpoints

GET/oauth2/scopes

Get 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

200Successful Response
FieldTypeDescription
groups*ScopeGroup[]

Scopes grouped by category with combined descriptions

array items · ScopeGroup

FieldTypeDescription
consent_description*string

User-friendly description for consent screen

scopes*string[]

List of scope identifiers in this group

sensitiveboolean

True if any scope in the group is sensitive

default: false

category*string

Scope category

requires_resource_accessboolean

True if scopes apply to resources user has access to, not personal resources

default: false

422Validation Error
FieldTypeDescription
detailValidationError[]

array items · ValidationError

FieldTypeDescription
loc*string | integer[]
msg*string
type*string

Example request

curl -X GET "https://api.davi.social/oauth2/scopes" \
  -H "Authorization: Bearer <token>"
GET/oauth2/client-info

Get 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_scopesboolean

default: false

scopesstring | null

Responses

200Successful Response
FieldTypeDescription
client*ClientInfo

object · ClientInfo

FieldTypeDescription
client_id*string
client_name*string
client_descriptionstring | null
icon_urlstring | null
client_uristring | null
organization*OrganizationInfo

object · OrganizationInfo

FieldTypeDescription
name*string
descriptionstring | null
logo_urlstring | null
websitestring | null
scope_groupsScopeGroup[] | null

array items · ScopeGroup

FieldTypeDescription
consent_description*string

User-friendly description for consent screen

scopes*string[]

List of scope identifiers in this group

sensitiveboolean

True if any scope in the group is sensitive

default: false

category*string

Scope category

requires_resource_accessboolean

True if scopes apply to resources user has access to, not personal resources

default: false

422Validation Error
FieldTypeDescription
detailValidationError[]

array items · ValidationError

FieldTypeDescription
loc*string | integer[]
msg*string
type*string

Example request

curl -X GET "https://api.davi.social/oauth2/client-info" \
  -H "Authorization: Bearer <token>"