Skip to main content

Get Agreements By Service

GET /v1/agreement/service/:id

Retrieves a list of agreements associated with a specific service. Returns all agreements linked to the given service identifier.

Response Example

[
{
"_id": "agreement-id-1",
"content": {
"en": {
"title": "Service Agreement",
"description": "Agreement for service usage.",
"body": "{\"blocks\":[{\"key\":\"a1b2c\",\"text\":\"Service agreement content.\",\"type\":\"unstyled\",\"depth\":0,\"inlineStyleRanges\":[],\"entityRanges\":[],\"data\":{}}],\"entityMap\":{}}"
}
},
"services": ["service-id-1"],
"active": true,
"global": false,
"reconsent": false,
"tenant": "tenant-id-1",
"type": "USER",
"created": "2025-04-02T16:01:45.209Z",
"updated": "2025-08-14T16:51:16.832Z"
}
]