Skip to main content
POST
/
api
/
permissions
/
{syncId}
/
batch-check
Batch Check Access
curl --request POST \
  --url https://sync.useparagon.com/api/permissions/{syncId}/batch-check \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "checks": [
    {
      "object": "a657df3b-17e2-5989-bc5f-13ddb7fdab41",
      "user": "user:[email protected]",
      "role": "can_read"
    }
  ]
}'
{
  "result": [
    {
      "allowed": true,
      "request": {
        "object": "a657df3b-17e2-5989-bc5f-13ddb7fdab41",
        "user": "user:[email protected]",
        "role": "can_read"
      },
      "error": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

syncId
string
required

UUID of the Sync to query, returned from the Enable Sync endpoint.

Body

application/json
checks
object[]
required

A list of access checks to perform between users and Synced Objects.

Response

Batch access check result

result
object[]
required
I