> For the complete documentation index, see [llms.txt](https://docs.tnid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tnid.com/company/b2c-features/create-opt-out-request.md).

# Create Opt-out Request

```
mutation (
    $source: String!
    $destination: String!
    $externalId: String
    $messageBody: String
    $type: OptOutRequestType!
    $timestamp: NaiveDateTime!
    $metadata: JSON
  ) {
    createOptOutRequest (
      source: $source
      destination: $destination
      externalId: $externalId
      messageBody: $messageBody
      type: $type
      timestamp: $timestamp
      metadata: $metadata
    ) {
      id
      source
      destination
      externalId
      messageBody
      type
      status
      createdAt
      updatedAt
      timestamp
      metadata
      company {
        id
      }
    }
  }

```
