POST
/
api
/
permissions
/
{syncId}
/
check
Check Access
curl --request POST \
  --url https://sync.useparagon.com/api/permissions/{syncId}/check \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "object": "<string>",
  "user": "<string>",
  "role": "<string>"
}'
{
  "hasAccess": true
}

Authorizations

Authorization
string
header
required

Paragon User Token. Add to the Authorization header of your requests.

Path Parameters

syncId
string
required

ID of the Sync

Body

application/json
object
string
required

The UUID of the synced object to check permissions for

user
string
required

The email of the user to check permissions for

role
string
required

The role to check, e.g. can_read, can_write

Response

Access check result

hasAccess
boolean

Whether the user has the specified role for the object