Malomo API Reference
  • Introduction
  • Authentication
  • Versioning
  • Errors
  • Webhooks
  • Supported Carriers
  • Resources
    • Order
    • Customer
    • Webhook
  • Malomo.js
    • Integrate with Malomo.js
    • Add a tracking block to your website using Malomo.js
    • Malomo.js Reference
Powered by GitBook
On this page
  • Webhook Properties
  • Create a Webhook
  • Retrieve a Webhook
  • Retrieve a List of Webhooks
  • Update a Webhook
  • Delete a Webhook

Was this helpful?

  1. Resources

Webhook

Webhook Properties

Field

Description

active

Whether events should be sent to this webhook. Can be either trueor false. Defaults to true.

created_at

When a Webhook was created on the Malomo Platform.

id

Unique identifier per Webhook.

topic

Event that triggers a webhook.

updated_at

When a Webhook was last updated.

url

URL webhook events should be sent to.

Create a Webhook

POST https://api.gomalomo.com/webhooks

Request Body

Name
Type
Description

active

boolean

Whether to send events to a webhook. Defaults to true.

secret

string

Key used to sign webhook events.

topic

string

Event that triggers a webhook.

url

string

URL to send webhook events to.

{
  "active": true,
  "created_at": "2019-01-30T13:30:00Z",
  "id": "be005f40-f068-4ca6-a936-f11b2f902ffc",
  "topic": "events:created",
  "updated_at": "2019-01-30T13:30:00Z",
  "url": "https://myapp.com/webhooks"
}

Retrieve a Webhook

GET https://api.gomalomo.com/webhooks/:id

Path Parameters

Name
Type
Description

id

string

Unique identifier of the desired Webhook.

{
  "active": true,
  "created_at": "2019-01-30T13:30:00Z",
  "id": "be005f40-f068-4ca6-a936-f11b2f902ffc",
  "topic": "events:created",
  "updated_at": "2019-01-30T13:30:00Z",
  "url": "https://myapp.com/webhooks"
}

Retrieve a List of Webhooks

GET https://api.gomalomo.com/webhooks

Query Parameters

Name
Type
Description

prev

string

Retrieve webhooks before a given cursor.

next

string

Retrieve webhooks after a given cursor.

[
  {
    "active": true,
    "created_at": "2019-01-30T13:30:00Z",
    "id": "be005f40-f068-4ca6-a936-f11b2f902ffc",
    "topic": "events:created",
    "updated_at": "2019-01-30T13:30:00Z",
    "url": "https://myapp.com/webhooks"
  }
]

Update a Webhook

PUT https://api.gomalomo.com/webhooks/:id

Path Parameters

Name
Type
Description

id

string

Unique identifier of the Webhook to update.

Request Body

Name
Type
Description

active

boolean

Whether to send events to a webhook.

url

string

URL to send webhook events to.

{
  "active": true,
  "created_at": "2019-01-30T13:30:00Z",
  "id": "be005f40-f068-4ca6-a936-f11b2f902ffc",
  "topic": "events:created",
  "updated_at": "2019-01-30T13:30:00Z",
  "url": "https://myapp.com/webhooks"
}

Delete a Webhook

DELETE https://api.gomalomo.com/webhooks/:id

Path Parameters

Name
Type
Description

id

string

Unique identifier of the Webhook to be deleted.

PreviousCustomerNextIntegrate with Malomo.js

Last updated 3 years ago

Was this helpful?