Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation

Unwrap

client.Webhooks.Unwrap(ctx) error
Function

Validates that the given payload was sent by OpenAI and parses the payload.

Unwrap

package main

import (
  "context"

  "github.com/openai/openai-go"
  "github.com/openai/openai-go/option"
)

func main() {
  client := openai.NewClient(
    option.WithAPIKey("My API Key"),
  )
  err := client.Webhooks.Unwrap(context.TODO())
  if err != nil {
    panic(err.Error())
  }
}
Returns Examples