Developers

Build on the workspace

Read and write objectives, measures and their values, issues, to-dos, meetings, and decisions. Notices leave the workspace only when you turn them on.

The API is off. Webhooks are off. Google sign-in is off. Microsoft sign-in is off. Company single sign-on is off. Provisioning is off.

Register Google

Create a web application in the Google identity console. Use these redirect addresses. The client id and secret stay in the host environment, not in this app.

Set PGOS_GOOGLE_SIGNIN_ENABLED=1, PGOS_GOOGLE_CLIENT_ID, and PGOS_GOOGLE_CLIENT_SECRET. Until the credentials are set, the sample company can finish sign-in without contacting Google.

Register Microsoft

Create an app registration that can sign in with a work account. Use these redirect addresses.

Set PGOS_MICROSOFT_SIGNIN_ENABLED=1, PGOS_MICROSOFT_CLIENT_ID, and PGOS_MICROSOFT_CLIENT_SECRET. Optional tenant: PGOS_MICROSOFT_TENANT.

Company single sign-on

Pro and Big/Enterprise. The reply address is below. Our identifier is the site origin plus /pgos/saml. Turn it on with PGOS_SAML_ENABLED=1.

Provisioning

Users and groups follow SCIM 2.0 at /pgos/scim/v2. Send the workspace token as Authorization: Bearer. The token is stored as a hash. Turn it on with PGOS_SCIM_ENABLED=1.

API

Version 1 lives at /pgos/api/v1. Send Authorization: Bearer pgos_k_.... A key is hashed, scoped, and revocable. The limit is 60 calls a minute. Turn the write API on with PGOS_API_ENABLED=1. The description is at /pgos/api/v1/openapi.json when the API is on.

curl /pgos/api/v1/objectives \
  -H "Authorization: Bearer pgos_k_example.secret"

Triggers and actions

An automation tool can subscribe to a trigger and call an action. The trigger key is the webhook event. The action is the API path.

TriggerKey
Measure went redmeasure.went_red
Issue addedissue.added
To-do duetodo.due
To-do overduetodo.overdue
Decision approveddecision.approved
Meeting concludedmeeting.concluded
Objective status changedobjective.status_changed
ActionMethodPath
Add an objectivePOST/pgos/api/v1/objectives
Add a measure valuePOST/pgos/api/v1/measures/{id}/values
Add an issuePOST/pgos/api/v1/issues
Add a to-doPOST/pgos/api/v1/to-dos
Conclude a meetingPATCH/pgos/api/v1/meetings/{id}
Approve a decisionPATCH/pgos/api/v1/decisions/{id}

Webhook signature

Each delivery sends PGOS-Timestamp and PGOS-Signature. The signature is sha256= plus the HMAC of the timestamp, a period, and the raw body, using the endpoint secret. Compare it in constant time. A failed delivery tries again after 1 minute, 5 minutes, and 30 minutes.

Back to sign in · API keys

Product names on this page are trademarks of their respective owners. PGOS and The 80/20 Institute are not affiliated with, sponsored by or endorsed by them.