Example Error
{
"errors": [
{
"title": "Unauthorized",
"detail": "You are not authorized to access this page"
}
]
}
Why This Happens
This error means the server couldn’t verify your identity or permissions. Common causes include:
- Missing or Invalid Credentials:
- You forgot to include an authentication token.
- The token is expired, revoked, or formatted incorrectly.
- Deprecated Authentication Method:
- You’re using a Personal Access Token (PAT), which is deprecated and no longer supported.
- Insufficient Permissions:
- Your account doesn’t have access to the specific resource (e.g., a pipe, card, or organization).
- Not Logged In:
- You’re using the GraphQL Playground without being authenticated in Pipefy.
How to fix it
-
Check Your Authentication Credentials:
-
For API Requests:
- Ensure your request includes a valid
Authorization
header with a Service Account token.
{ "Authorization": "Bearer YOUR_SERVICE_ACCOUNT_TOKEN" }
- Ensure your request includes a valid
-
-
For GraphQL Playground:
- Log in to Pipefy in your browser first.
- Refresh the Playground page to inherit your session.
-
Stop Using Personal Access Tokens (PATs):
- PATs are deprecated. Switch to Service Accounts immediately.
- Follow our Service Account setup guide.
-
Verify Permissions:
- Ensure your Service Account or user role has access to the resource you’re querying (e.g., the pipe or organization).
- Contact your Pipefy admin to confirm permissions.
-
Check the API Endpoint:
- Ensure you’re using the correct URL for Pipefy’s GraphQL API:
https://api.pipefy.com/graphql
- Ensure you’re using the correct URL for Pipefy’s GraphQL API:
-
Test in GraphQL Playground:
- Double-check your token formatting and headers if the Playground works but your code doesn’t.