Create Webhook

Creates a Webhook.

URLs

Environment Method URL
Sandbox https://micro.fndev.net/v1/webhook-sandbox/webhooks/
Production https://micro.fieldnation.com/v1/webhook/webhooks/

Header Parameters

Parameter Type Example Notes
fn-token string abCDEFGIsInR5cCI6IuXVCJ9.eyJ11wXYZ Secret Token. Required.

Path Parameters

Not applicable.

Query Parameters

Not applicable.

Body Parameters

Refer to Webhooks Object for parameter details and examples.

{
    "url": "https://yourcompany.com/handle_webhook",
    "method": "POST",
    "active": true,
    "secret": "abcde42a8f6c09545b3bedbe2ab45a50",
    "events": ["workorder.created", "workorder.paid"]
}

Response

Returns the Webhook Object.

Examples

Webhooks Object, with Secret

Errors

Standard HTTP and OAuth error codes.