List consent statement versions.
GET
/api/admin/consent-statements/{sid}/versions
Code sample: Shell / cURL
curl --request GET \ --url https://auth.example.com/api/admin/consent-statements/example/versions \ --header 'Authorization: Bearer <token>'Lists versions for a consent statement, including draft/active/retired status and effective start/end timestamps.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” sid
required
string
Consent statement identifier.
Responses
Section titled “ Responses ”Consent statement version list response.
Media type application/json
object
versions
required
Array<object>
object
id
required
string
tenant_id
required
string
statement_id
required
string
version
required
string
content_type
required
string
effective_at
required
integer format: int64
effective_until
Optional end timestamp. Null means no planned end.
integer | null format: int64
is_current
required
integer
status
required
string
created_at
required
integer format: int64
updated_at
required
integer format: int64
key
additional properties
key
additional properties
Example
{ "versions": [ { "content_type": "url", "is_current": 0, "status": "draft" } ]}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}