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

# Create a Motivation Code

> Creates a motivation code you can attribute gifts to.

Send its `name` and `code`, the `mediaType` describing where it is used, and optionally the `groups` it belongs to. Returns the created code with its new `id`, which you can pass as `motivationCodeId` when processing a donation.


## API Specification

The full API specification for this endpoint is available in the [documentation index](https://docs.virtuous.org/llms.txt).
