Skip to main content
Glama

webhooks.create

Create webhook endpoints in Ryft MCP to receive real-time notifications for payment events, customer updates, and subscription changes.

Instructions

Create a Ryft webhook endpoint.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
activeYes
eventTypesYes

Implementation Reference

  • The handler function for webhooks.create tool, which calls the HTTP client's POST method.
    async (args) => client.post('/webhooks', webhookSchema.parse(args)),
  • Registration of the webhooks.create tool.
    registerTool(
      'webhooks.create',
      'Create a Ryft webhook endpoint.',
      webhookSchema.shape,
      async (args) => client.post('/webhooks', webhookSchema.parse(args)),
    );
  • Schema definition for the webhook input parameters.
    const webhookSchema = z.object({
      url: z.string().url(),
      active: z.boolean(),
      eventTypes: z.array(z.string().min(1)).min(1),
    });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bkawk/ryft-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server