Skip to content
gist.link ↗

myPayroll

Query Payroll API — POST https://payroll.api.gist.link/graphql

Employee self-service (‘My payroll’ view): the caller’s own employee record and paystubs from completed pay runs. Any authenticated user; scoped strictly to the caller.

payroll:query:myPayroll

The calling IAM key must hold this permission (or a wildcard that covers it: payroll:query:* or payroll:*) and the access token must have been minted with audience=payroll. See Permissions.

type Query {
myPayroll: MyPayroll!
}

This query takes no arguments.

MyPayroll! — see the Payroll types reference.

Terminal window
curl https://payroll.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query MyPayroll { myPayroll { configured } }",
"variables": {}
}
JSON