Docs
Workspace

Approvals

See what the person your app acts for can decide right now, so your app can tell them, while the deciding stays in Agoo.

Preview· P9For developers

This is a published preview. Names and fields may still change before general availability; changes will be listed in the changelog.

GET/approval-requests (scope approvals:read) returns what the person an OAuth app acts for may decide now, oldest first, with counts of what's waiting. Use it to show "3 approvals waiting" in your own app, a chat tool or a daily summary.

It's read only. Approving, declining and sending back happen in Agoo, where the person sees the whole request before they decide. No key, app or AI assistant can approve anything through the API.

What's in it

  • Each item has its kind, such as leave, a timesheet or extra time. New kinds are added as more of Agoo uses approvals, so show an item whose kind you don't know with a general label rather than leaving it out.
  • counts gives how many are waiting, so you don't need to page through to show a number.
  • Only what the person may decide now is there: not what they've already decided, and not what's waiting for someone else.
  • limit sets how many items come back (1 to 100, 25 by default).

It's for an OAuth app acting for someone: an API key has no person, so nothing is waiting for it.

On this page