> ## Documentation Index
> Fetch the complete documentation index at: https://developer.sodacards.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ListWebhooks

> ListWebhooks returns the reseller's registered webhook endpoints. It never
 returns their signing secrets.



## OpenAPI

````yaml /api-reference/sodacards.yaml get /v1/webhooks
openapi: 3.1.0
info:
  title: SODACARDS Developer API
  description: Sell gift cards and game top-ups from your own systems.
  version: 1.0.0
servers:
  - url: https://api.sodacards.com
security:
  - ApiKeyAuth: []
tags:
  - name: PublicAPIService
    description: >-
      PublicAPIService is the public developer API a reseller calls with an API
      key.
       It is served as REST (via HTTP transcoding) so developers use GET /v1/... and
       curl, and its OpenAPI 3.1 spec is generated from this one file. Every method is
       authenticated by the API-key gateway that fronts it.
paths:
  /v1/webhooks:
    get:
      summary: ListWebhooks
      description: >-
        ListWebhooks returns the reseller's registered webhook endpoints. It
        never
         returns their signing secrets.
      operationId: listWebhooks
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/sodacards.devpublic.v1.ListWebhooksResponse
      x-codeSamples:
        - lang: python
          label: Python
          source: |
            import os, sodacards

            config = sodacards.Configuration(host="https://api.sodacards.com")
            config.api_key["ApiKeyAuth"] = os.environ["SODACARDS_API_KEY"]
            client = sodacards.DefaultApi(sodacards.ApiClient(config))

            webhooks = client.list_webhooks()
        - lang: typescript
          label: TypeScript
          source: >
            import { Sodacards } from "@sodacards/sdk";


            const sodacards = new Sodacards({ apiKeyAuth:
            process.env.SODACARDS_API_KEY });


            const webhooks = await sodacards.listWebhooks();
        - lang: go
          label: Go
          source: >
            client := sodacards.NewAPIClient(sodacards.NewConfiguration())

            auth := context.WithValue(context.Background(),
            sodacards.ContextAPIKeys,
                map[string]sodacards.APIKey{"ApiKeyAuth": {Key: os.Getenv("SODACARDS_API_KEY")}})

            webhooks, _, err := client.DefaultAPI.ListWebhooks(auth).Execute()
        - lang: php
          label: PHP
          source: >
            $config = Sodacards\Configuration::getDefaultConfiguration()
                ->setApiKey('X-API-Key', getenv('SODACARDS_API_KEY'));
            $client = new Sodacards\Api\DefaultApi(new GuzzleHttp\Client(),
            $config);


            $webhooks = $client->listWebhooks();
components:
  schemas:
    sodacards.devpublic.v1.ListWebhooksResponse:
      type: object
      properties:
        webhooks:
          type: array
          items:
            $ref: '#/components/schemas/sodacards.devpublic.v1.Webhook'
          title: webhooks
          description: webhooks are the reseller's registered endpoints.
      title: ListWebhooksResponse
      additionalProperties: false
    sodacards.devpublic.v1.Webhook:
      type: object
      properties:
        id:
          type: string
          title: id
          description: id identifies the endpoint.
        url:
          type: string
          title: url
          description: url is the HTTPS endpoint events are delivered to.
        events:
          type: array
          items:
            type: string
          title: events
          description: events are the subscribed event types.
        active:
          type: boolean
          title: active
          description: active is whether deliveries are currently sent to this endpoint.
        createdAt:
          type: string
          title: created_at
          description: created_at is when the endpoint was registered (RFC 3339).
      title: Webhook
      additionalProperties: false
      description: Webhook is a registered endpoint. It never carries the signing secret.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      description: Your API key, prefixed sc_live_ or sc_test_.
      name: X-API-Key
      in: header

````