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

# createGift

> Give a gift (recognition) to another member, spending the gift's point cost



**mutation** `createGift(input: CreateGiftInput!): CreateGiftPayload`

## Arguments

**`input`**: `CreateGiftInput!` (required)

Parameters for CreateGift

## Returns

`CreateGiftPayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

**`errors`**: `[String!]!`

---

**`giftTransaction`**: `Recognition`

The gift that was given

## Examples

```graphql Mutation
mutation CreateGift($input: CreateGiftInput!) {
  createGift(input: $input) {
    clientMutationId
    errors
    giftTransaction {
      contextTargetable {
        __typename
        ... on ChatMessage {
          __typename
        }
      }
      createdAt
      giftDefinition {
        archived
        avatarUrl
        costInPoints
        createdAt
        id
        name
      }
      giftDefinitionAvatarUrl
      giftDefinitionName
      id
    }
  }
}
```

```json Variables
{
  "input": {
    "giftDefinitionId": "id",
    "recipientId": "id"
  }
}
```

```json Response
{
  "data": {
    "createGift": {
      "clientMutationId": "string",
      "errors": [
        "string"
      ],
      "giftTransaction": {
        "contextTargetable": {
          "__typename": "ChatMessage"
        },
        "createdAt": "value",
        "giftDefinition": {
          "archived": true,
          "avatarUrl": "string",
          "costInPoints": 1,
          "createdAt": "value",
          "id": "id",
          "name": "string"
        },
        "giftDefinitionAvatarUrl": "string",
        "giftDefinitionName": "string",
        "id": "id"
      }
    }
  }
}
```


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