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

# API and webhook examples

> Follow annotated walkthroughs with screenshots, implementation notes, requests, responses, and webhook payloads.

Use the walkthroughs when you are implementing a specific YCloud or WhatsApp scenario. Each page keeps the context around the example, including prerequisites, expected behavior, screenshots, request bodies, response bodies, and operational notes where available.

Use the webhook payload catalog when you need to quickly find and copy a payload for any supported event type.

## How to use the examples

1. Read the feature guide to understand prerequisites and lifecycle behavior.
2. Choose the scenario closest to your use case.
3. Replace every placeholder with a value from your account.
4. Compare the request with the endpoint schema in the API Reference.
5. Test webhook handling before relying on delivery or lifecycle updates.

<Warning>
  Example IDs, phone numbers, URLs, and API keys are placeholders. Do not copy
  them into production unchanged.
</Warning>

## API examples

<CardGroup cols={2}>
  <Card title="WhatsApp template creation" icon="rectangle-list" href="/en/api-reference/guides/examples/api-examples/whatsapp-template-creation-examples">
    Create authentication, utility, marketing, commerce, Flow, and calling templates with annotated examples and screenshots.
  </Card>

  <Card title="WhatsApp messaging" icon="messages" href="/en/api-reference/guides/examples/api-examples/whatsapp-messaging-examples">
    Send template, media, interactive, commerce, Flow, and calling messages with visual examples and implementation notes.
  </Card>
</CardGroup>

## Webhook examples

<CardGroup cols={2}>
  <Card title="Webhook walkthroughs" icon="webhook" href="/en/api-reference/guides/examples/webhook-examples/overview">
    Review prerequisites, trigger behavior, lifecycle details, and event-specific payload scenarios.
  </Card>

  <Card title="All webhook payloads" icon="code" href="/en/api-reference/guides/examples/webhook-examples/webhook-payload-examples">
    Browse every supported event type and named payload example from the webhook specification.
  </Card>
</CardGroup>

## What each example includes

API examples explain the scenario, show a complete request, describe the
response contract, and call out implementation details. Webhook examples
explain the trigger, show the HTTP request sent to your endpoint, and describe
how your endpoint should acknowledge and process it.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.