Skip to content
gist.link ↗

createEmployeeInvite

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

Mint a single-use, 7-day public invite URL for an employee. ROLE_ADMIN.

payroll:mutation:createEmployeeInvite

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

type Mutation {
createEmployeeInvite(employeeUuid: String!): EmployeeInvite!
}
Argument Type Required Description
employeeUuid String! Yes —

EmployeeInvite! — 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": "mutation CreateEmployeeInvite($employeeUuid: String!) { createEmployeeInvite(employeeUuid: $employeeUuid) { uuid url created_at } }",
"variables": {
"employeeUuid": "example"
}
}
JSON