Skip to main content

Get citizen's own entity and available forms

Requires a self-service token. Returns the token's entity plus the forms the citizen may submit.

Request

Method: GET
Path: /api/auth/self-service/entity

Authentication: Required (Bearer JWT)

Responses

200 - Entity and forms

400 - Token missing entityGuid

403 - Cross-entity access forbidden

404 - Tenant or entity not found

Examples

cURL

curl -X GET \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
http://localhost:3000/api/auth/self-service/entity

JavaScript

const response = await fetch('http://localhost:3000/api/auth/self-service/entity', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer ' + token,
},
});

const data = await response.json();
console.log(data);

This documentation is automatically generated from the OpenAPI specification.