---
title: "generates a token to use OptIn API"
method: POST
path: "/v1/optin/generate_token"
tags: ["optin"]
---

# generates a token to use OptIn API

`POST /v1/optin/generate_token`

## Request body

- OptInTokenRequest
  - `contactGroupIds` integer[] — contact group id

## Response `200`

OK

## Other responses

- `400` — Bad request
- `500` — Internal server error

---

[API](https://skmtc.dev/linkmobility/apis/untitled-api.md) · [All operations](https://skmtc.dev/linkmobility/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/linkmobility/untitled-api/revisions/db84f79799b9/schema)
