Skip to content
  • Auto
  • Light
  • Dark
Get Started

Retrieve

Get
client.Webhooks.Get(ctx, id) (*WebhookWebhookWebhookGetResponse, error)
get/api/v1/webhooks/{id}

Invokes the c1.api.webhooks.v1.WebhooksService.Get method.

Parameters
idstring

The id field.

Returns
WebhookGetResponsestruct

The WebhooksServiceGetResponse message.

Hide ParametersShow Parameters
WebhookIDstringCreatedAtTimeDeletedAtTimeDescriptionstringDisplayNamestringUpdatedAtTimeURLstringWebhook
optional

The Webhook message.

Request example Go
package main

import (
  "context"
  "fmt"

  "github.com/stainless-sdks/-go"
  "github.com/stainless-sdks/-go/option"
)

func main() {
  client := conductoronesdk.NewClient(
    option.WithAPIKey("My API Key"),
  )
  webhook, err := client.Webhooks.Get(context.TODO(), "id")
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", webhook.Webhook)
}
200 Example
{
  "webhook": {
    "id": "id",
    "description": "description",
    "displayName": "displayName",
    "url": "url"
  }
}