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

# See what a call looks like

> The exact shape of the `data` of a call for this event, made from the latest real subscriber or campaign of the team when there is one, from an example otherwise: a workflow is built on real fields before anything has happened.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/webhooks/samples/{event}
openapi: 3.1.0
info:
  title: Lekalao API
  version: 1.0.0
  description: >-
    Everything the interface does, your application can do too. Every call
    carries an API token (Settings → API tokens).
servers:
  - url: https://api.lekalao.com
    description: Lekalao
  - url: https://{host}/api
    description: Your own installation
    variables:
      host:
        default: lekalao.example.com
        description: The domain of your installation
security:
  - bearer: []
tags:
  - name: Lists
  - name: Subscribers
  - name: Tags
  - name: Segments
  - name: Imports
  - name: Templates
  - name: Campaigns
  - name: Automations
  - name: Transactional e-mails
  - name: Revenue
  - name: Contact fields
  - name: Events
  - name: Webhooks
  - name: Platform
paths:
  /v1/webhooks/samples/{event}:
    get:
      tags:
        - Webhooks
      summary: See what a call looks like
      description: >-
        The exact shape of the `data` of a call for this event, made from the
        latest real subscriber or campaign of the team when there is one, from
        an example otherwise: a workflow is built on real fields before anything
        has happened.
      operationId: api.webhooks.sample
      parameters:
        - name: event
          in: path
          required: true
          schema:
            type: string
            enum:
              - subscriber.created
              - subscriber.confirmed
              - subscriber.unsubscribed
              - subscriber.tag_added
              - subscriber.tag_removed
              - campaign.sent
              - mail.bounced
              - mail.complaint
      responses:
        '200':
          description: A sample.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    additionalProperties: true
              example:
                data:
                  event: subscriber.created
                  id: 01a0bb87-44ad-7086-8ffc-9899953884ca
                  email: ada@example.com
                  first_name: Ada
                  last_name: Lovelace
                  status: subscribed
                  list: 01a0bb7d-7f02-71e1-87d9-bf7b37a0cbf6
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  responses:
    Unauthenticated:
      description: No token, or an invalid or revoked one.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Message'
          example:
            message: Unauthenticated.
    Forbidden:
      description: The token lacks the ability needed, or the team is suspended.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Message'
    NotFound:
      description: Nothing of that uuid in the token's team.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Message'
    TooManyRequests:
      description: >-
        The token's limit is reached. Wait the number of seconds Retry-After
        gives.
      headers:
        X-RateLimit-Limit:
          schema:
            type: integer
          description: Calls allowed per minute for this token.
        X-RateLimit-Remaining:
          schema:
            type: integer
        Retry-After:
          schema:
            type: integer
  schemas:
    Message:
      type: object
      properties:
        message:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: >-
        An API token. The "read" ability: GET routes only. "read + write": every
        route.

````