# User data endpoint
If the user has given consent, you can retrieve the granted data set with the access token.
# Request
GET https://auth.doccheck.com/api/users/data
Authorization: Bearer {access_token}
# Response
If the user consented, the request returns the granted user data.
{
"profession_id": {ID},
"unique_id": "{Unique-ID}"
}
# Error response
See the error messages here.
{
"error_description": "xxxxx",
"error": "xxxx"
}
# Preflight/OPTIONS
The endpoint supports CORS preflight requests using the OPTIONS method.
# Testing the endpoint
curl --location 'https://auth.doccheck.com/api/users/data' \
--header 'Authorization: Bearer test_token'