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.
https://pgos-preview-git-main-bill-canady-s-projects.vercel.app/pgos/sign-in/google/callbackhttps://pgos.the8020institute.com/pgos/sign-in/google/callback
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.
https://pgos-preview-git-main-bill-canady-s-projects.vercel.app/pgos/sign-in/microsoft/callbackhttps://pgos.the8020institute.com/pgos/sign-in/microsoft/callback
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.
https://pgos-preview-git-main-bill-canady-s-projects.vercel.app/pgos/sign-in/saml/acshttps://pgos.the8020institute.com/pgos/sign-in/saml/acs
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.
| Trigger | Key |
|---|---|
| Measure went red | measure.went_red |
| Issue added | issue.added |
| To-do due | todo.due |
| To-do overdue | todo.overdue |
| Decision approved | decision.approved |
| Meeting concluded | meeting.concluded |
| Objective status changed | objective.status_changed |
| Action | Method | Path |
|---|---|---|
| Add an objective | POST | /pgos/api/v1/objectives |
| Add a measure value | POST | /pgos/api/v1/measures/{id}/values |
| Add an issue | POST | /pgos/api/v1/issues |
| Add a to-do | POST | /pgos/api/v1/to-dos |
| Conclude a meeting | PATCH | /pgos/api/v1/meetings/{id} |
| Approve a decision | PATCH | /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.