Use the AgentSync Platform API to programmatically retrieve your organization’s
contracts, contract assignments, producers, organizations, tasks and requirement
sets. The Getting started guide published beside this reference covers credentials,
paging, errors and webhooks.
Call https://api.{environment}.agentsync.io/platform, then the operation’s path,
which begins /v1. Every request carries a client-credentials access token issued
to a service account, with the scope the operation names.
Lists are paged: page_size defaults to 50, a value above 200 is lowered to 200
(GET /v1/organizations lowers any value above 50 to 50), and page_token (at
most 1024 bytes) is the previous page’s page.nextToken.
An error carries its code in its first details entry; the ErrorCode schema
lists them. Two responses can carry no code: a 500 can have an empty body or a
message only (treat it as internal_error), and a 429 from the API gateway has a
message only (treat any 429 as “slow down”).
AgentSync can notify your system of changes through webhooks; the
AgentSync event catalog
lists the event types. Freshness is best-effort: a change is normally readable
within a few seconds of its event; if not, retry with backoff for up to about a
minute. Re-read the records you hold periodically to catch anything an event did
not carry.
Version 1 (/v1) only adds things: new operations, optional parameters, response
fields, error codes and enum values. Nothing is removed, renamed or changed in
meaning. Ignore response fields you don’t recognize. If you get an error code or
enum value you don’t recognize, handle it by its HTTP status. Breaking changes are
announced in advance.
- Server 1:https://api.{environment}.agentsync.io/platformVariablesenvironment:
AgentSync API gateway
bearerAuth (http)
An OAuth 2.0 access token for a service account, sent as “Authorization: Bearer ”.
oauth2 (oauth2)
How to get the access token: the client-credentials flow, with the client ID and secret AgentSync issued for your organization. The token host follows the environment, auth..agentsync.io. Request only the scopes your integration needs.