Skip to content
Finerlise
Esc
↑↓navigate↵open⌘Jpreview

Deliver response.completed for one Form to a URL (OAuth only)

POST/hooks
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:hooks:write
Request body
requiredapplication/json
formIdstring<uuid>required
targetUrlstring<uri>required
max length 2048
Responses
201

Subscribed. A 410 Gone from targetUrl deletes the hook.

idstring<uuid>
formIdstring<uuid>
targetUrlstring<uri>
createdAtstring<date-time>
400

Invalid body or target URL, or too many subscriptions.

errorstringrequired

Short message; same as message.

codestringrequired
Allowed:invalid_requestunauthorizedinsufficient_scopenot_foundmethod_not_allowedrate_limitedinternal_error
messagestringrequired
hintstringrequired

How to resolve the error.

docsstringrequired

Where the API is described.

401

Missing or invalid token.

errorstringrequired

Short message; same as message.

codestringrequired
Allowed:invalid_requestunauthorizedinsufficient_scopenot_foundmethod_not_allowedrate_limitedinternal_error
messagestringrequired
hintstringrequired

How to resolve the error.

docsstringrequired

Where the API is described.

403

The token lacks the required scope.

errorstringrequired

Short message; same as message.

codestringrequired
Allowed:invalid_requestunauthorizedinsufficient_scopenot_foundmethod_not_allowedrate_limitedinternal_error
messagestringrequired
hintstringrequired

How to resolve the error.

docsstringrequired

Where the API is described.

404

No such Form in this Workspace.

errorstringrequired

Short message; same as message.

codestringrequired
Allowed:invalid_requestunauthorizedinsufficient_scopenot_foundmethod_not_allowedrate_limitedinternal_error
messagestringrequired
hintstringrequired

How to resolve the error.

docsstringrequired

Where the API is described.

429

Rate limited; see the Retry-After header.

errorstringrequired

Short message; same as message.

codestringrequired
Allowed:invalid_requestunauthorizedinsufficient_scopenot_foundmethod_not_allowedrate_limitedinternal_error
messagestringrequired
hintstringrequired

How to resolve the error.

docsstringrequired

Where the API is described.

Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST 'https://finerlise.com/api/v1/hooks' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "formId": "126460ed-49b2-4c69-849a-bd8904ec5d8f",
  "targetUrl": "http://example.com"
}'
Response
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "formId": "126460ed-49b2-4c69-849a-bd8904ec5d8f",
  "targetUrl": "http://example.com",
  "createdAt": "2019-08-24T14:15:22Z"
}

Was this page helpful?