Create Webhooks
Search
client.Search.NewWebhooks(ctx, body) (*ListarrayNextPageTokenstringSearchNewWebhooksResponse, error)
post/api/v1/search/webhooks
Invokes the c1.api.webhooks.v1.WebhooksSearch.Search method.
Parameters
bodyPageSizefieldPageTokenfieldQueryfieldRefsfieldSearchNewWebhooksParams
Returns
SearchNewWebhooksResponsestruct
The WebhooksSearchResponse 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"),
)
response, err := client.Search.NewWebhooks(context.TODO(), conductoronesdk.SearchNewWebhooksParams{
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.List)
}
200 Example
{
"list": [
{
"id": "id",
"description": "description",
"displayName": "displayName",
"url": "url"
}
],
"nextPageToken": "nextPageToken"
}