/api/v1/agents/register | POST | Agent | Superblocks Cloud | Route called to register an agent with Superblocks Cloud. | Superblocks Agent Key |
/api/v1/agents | DELETE | Agent | Superblocks Cloud | Route called to deregister an agent from the Superblocks Cloud (called during agent shutdown). | Superblocks Agent Key |
/api/v1/agents/healthcheck | POST | Agent | Superblocks Cloud | Route called to post health check information to Superblocks Cloud, including diagnostic and execution metrics (default: called on a 30s interval). | Superblocks Agent Key |
/api/v1/agents/datasource/:id (DEPRECATED) | POST | Agent | Superblocks Cloud | Route called to get OAuth client information needed to perform OAuth Token exchanges. | Superblocks Agent Key + User JWT |
/api/v1/integrations | GET | Agent | Superblocks Cloud | Route called to fetch integration configurations from the Superblocks Cloud. | Superblocks Agent Key + User JWT |
/api/v1/agents/user/userToken | GET | Agent | Superblocks Cloud | Route called to get the currently logged in user’s OAuth2.0 access token from Superblocks Cloud. This is then sent as an authorization header or query parameter in integration requests. | Superblocks Agent Key + User JWT |
/api/v1/agents/user/userToken | POST | Agent | Superblocks Cloud | Route called after OAuth token exchanges are completed to cache access tokens generated for the use in Superblocks Cloud. Token caches ensure users do not have to login multiple times for an Integration. | Superblocks Agent Key + User JWT |
/api/v1/agents/user/userToken | DELETE | Agent | Superblocks Cloud | Route called to delete all of the user’s OAuth2.0 access tokens that have been cached for Integrations. Initiated when developers use the logoutIntegration() function in frontend JS. | Superblocks Agent Key + User JWT |
/api/v1/agents/userToken | GET | Agent | Superblocks Cloud | Route called to get a shared OAuth2.0 access token to use in Integration authentication. | Superblocks Agent Key + User JWT + Org API Token |
/api/v1/agents/userToken | POST | Agent | Superblocks Cloud | Route called after a successful OAuth2.0 token exchange to save shared access token for an Integration. | Superblocks Agent Key + User JWT + Org API Token |
/api/v1/oauth2/gsheets/refresh | POST | Agent | Superblocks Cloud | Route called to refresh Google Sheet OAuth2.0 access tokens used by the Google Sheets integration. | Superblocks Agent Key + User JWT + Org API Token |
/api/v2/agents/audit | POST | Agent | Superblocks Cloud | Route called to create audit log records in Superblocks Cloud for API executions. | Superblocks Agent Key |
/api/v2/agents/pending-jobs | POST | Agent | Superblocks Cloud | Route called to fetch deployed Scheduled Jobs that should be run by the agent based on their configured schedule. | Superblocks Agent Key |
/api/v3/apis/:apiId | GET | Agent | Superblocks Cloud | Route called to fetch an API definition from Superblocks Cloud. For deployed APIs, definitions are fetched from the Global Edge Network by default, and round trip to the Superblocks Cloud only if unavailable. | Superblocks Agent Key + User JWT + Org API Token |
/api/v3/apis/signatures | PUT | Agent | Superblocks Cloud | When Agent Signing is enabled, this route is called to update the signature of an API when signatures are updated as a result of a re-signing job. | Superblocks Agent Key |
/api/v2/applications/signatures | PUT | Agent | Superblocks Cloud | When Agent Signing is enabled, this route is called to update the signature on an Application when signatures are updated as a result of a re-signing job. | Superblocks Agent Key |
/api/v2/keyrotations/claim-resources | POST | Agent | Superblocks Cloud | When Agent Signing is enabled, this route is called when a re-signing job is in progress to fetch a batch of resources (APIs and Applications) for the agent to re-sign. | Superblocks Agent Key |