Testing & Sandbox
Sandbox
Trigger a Webhook
Changed onTriggers a callback previously registered for webhooks. Use this endpoint to emit a webhook for testing in the Sandbox environment. This endpoint will respond with a 404 outside of the Sandbox environment.
Authentication
This endpoint accepts any one of the following token types:
- Company-scoped access token (OAuth2AuthorizationCode) — obtained by a company manager through the Authorization Code flow or the Refresh Token flow. See Authentication for partners.
- Company-scoped access token (assertion) (OAuth2CompanyManagerAssertion) — obtained through the urn:ietf:params:oauth:grant-type:jwt-bearer grant for a company manager. See OAuth Assertion.
- Customer API token (CustomerAPIToken) — generated by the customer on their Integration Settings page, with the scopes they choose there. See Authorization for customers.
post/v1/sandbox/webhook-callbacks/trigger
Request
- Base URLhttps://gateway.remote.com
- Auth
- OAuth 2Authorization code/auth/oauth2/authorizeToken URL/auth/oauth2/token
- or OAuth 2Client credentialsToken URL/auth/oauth2/token
- or HTTP bearer
Request body
union required
Required params to trigger a webhook event in the Sandbox environment
intersection required
OR
intersection required
Example request
{
"employment_id": "e966a8b8-1076-11ee-a5f2-9b3997a968f6",
"event_type": "employment.onboarding_task.completed"
}Response
Success
Success Response required
A generic success response returned by operations that don't produce a specific resource (e.g., updates, deletes).
data, object required
Example response
{
"data": {
"status": "ok"
}
}Changes
- info
the
messageresponse's property patternNot Foundwas removed for the status
- info
- info
added the new
employment.contractor_rates.updatedenum value to the request propertyoneOf[subschema #1: WebhookTriggerEmploymentParams]/event_type
- info