Skip to content

Authentication

All API requests require a Bearer token in the Authorization header.

Section titled “API Auth Tokens (recommended for automation)”

API tokens are the simplest way to authenticate programmatic requests. Create one via the dashboard or the API:

Terminal window
curl -X POST https://api.justworkflowit.com/organizations/$ORG_ID/api-tokens \
-H "Authorization: Bearer $JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "CI/CD Pipeline",
"permissions": ["workflow:create", "workflow:version:create", "job:submit", "job:read"]
}'

The response includes a token field — this is your Bearer token. Store it securely; it cannot be retrieved again.

Terminal window
# Use the token for subsequent requests
curl https://api.justworkflowit.com/organizations/$ORG_ID/workflows \
-H "Authorization: Bearer $API_TOKEN"

If you’re building a web application, authenticate users through the JustWorkflowIt login page and use the resulting JWT:

  1. Sign in via the JustWorkflowIt login page
  2. The returned idToken is your Bearer token
  3. Tokens expire after 1 hour; refresh using the standard refresh token flow

Every API endpoint requires a specific permission. Permissions are assigned to users through roles or directly on API tokens.

See the API Reference for the exact permission required by each endpoint, shown in the x-permission field.

Common permission sets:

Use CasePermissions
CI/CD pipelineworkflow:create, workflow:version:create, job:submit, job:read, job:list
Monitoringjob:read, job:list, metrics:read
Full accessAll permissions (use the owner role)