Download OpenAPI specification:Download
Manage consent requests and consents. These APIs allow third party clients to request consent from app users. They also allow users to grant consent requests, view all consents related to their account, and revoke any granted permissions.
Retrieve all consents.
Required permissions: apps:read
, [appId]:read
, consents:read
.
{- "result": [
- {
- "consent_id": "string",
- "tenant_id": "string",
- "app_id": "string",
- "client_id": "string",
- "user_id": "string",
- "scope": "string",
- "created_at": 0,
- "expires_at": 0,
- "updated_at": 0
}
]
}
Retrieve a consent by ID.
Required permissions: apps:read
, [appId]:read
, consents:read
.
{- "result": {
- "consent_id": "string",
- "tenant_id": "string",
- "app_id": "string",
- "client_id": "string",
- "user_id": "string",
- "scope": "string",
- "created_at": 0,
- "expires_at": 0,
- "updated_at": 0
}
}
Delete consents by user ID. If no consent ID is provided, all consents for the user are deleted.
Required permissions: apps:delete
, [appId]:delete
, consents:delete
.
{- "message": "string",
- "error_code": 404
}
Retrieve all consents for an app.
Required permissions: apps:read
, [appId]:read
, consents:read
.
{- "result": [
- {
- "consent_id": "string",
- "tenant_id": "string",
- "app_id": "string",
- "client_id": "string",
- "user_id": "string",
- "scope": "string",
- "created_at": 0,
- "expires_at": 0,
- "updated_at": 0,
- "client_name": "string"
}
]
}
Delete consents by client ID. If no consent ID is provided, all consents for the client are deleted.
Required permissions: apps:delete
, [appId]:delete
, consents:delete
.
{- "message": "string",
- "error_code": 404
}
Get all consents for current user
{- "result": [
- {
- "consent_id": "string",
- "tenant_id": "string",
- "app_id": "string",
- "client_id": "string",
- "user_id": "string",
- "scope": "string",
- "created_at": 0,
- "expires_at": 0,
- "updated_at": 0
}
]
}