Javascript
import Honcho from '@honcho-ai/core'; const client = new Honcho({ apiKey: 'My API Key', }); const webhookEndpoint = await client.workspaces.webhooks.getOrCreate('workspace_id', { url: 'url' }); console.log(webhookEndpoint.id);
{ "id": "<string>", "workspace_id": "<string>", "url": "<string>", "created_at": "2023-11-07T05:31:56Z" }
Get or create a webhook endpoint URL.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Workspace ID
Webhook endpoint parameters
Successful Response
The response is of type object.
object