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

# Card created

> Event data sent for a Loyalty v2 vl.card.created activity handled by Workflows

The `vl.card.created` event indicates that Voucherify created a Loyalty v2 card during program member enrollment. Voucherify creates one card for every card definition assigned to the program; cards cannot be created independently of member enrollment.

<Note>
  This page documents only the event data nested under `data`. See [Introduction to webhooks](/api-reference/introduction-to-webhooks) for the shared webhook structure, and [Workflows webhooks](/api-reference/workflows-webhooks) for the full Workflows webhook payload.
</Note>

This event can trigger a workflow when **Loyalty activity** is configured with the **Cards** group and the `vl.card.created` activity type. If the workflow reaches a **Webhook callout** action, Voucherify sends a webhook to the action's target URL.

The example shows the content of `data`. It contains snapshots recorded with the activity. It is not wrapped in an `activity` property.

During enrollment, Voucherify also records [`vl.card.assigned`](/api-reference/loyalty-activity/cards/assigned) and [`vl.member.card.assigned`](/api-reference/loyalty-activity/members/card-assigned) activities for each created card. Because card code generation runs asynchronously, these activity snapshots contain `code: null`. A [`vl.card.code_generation.succeeded`](/api-reference/loyalty-activity/cards/code-generation-succeeded) or [`vl.card.code_generation.failed`](/api-reference/loyalty-activity/cards/code-generation-failed) activity follows later.


## OpenAPI

````yaml openapi-events/events-loyalty-activity.json webhook vl.card.created
openapi: 3.1.0
info:
  title: Events - Events loyalty activity
  version: '2024-01-01'
  description: ''
servers: []
security: []
paths: {}

````