---
title: "Request Goal Channel Link Code"
method: POST
path: "/goals/channel_link_codes"
tags: ["goals"]
---

# Request Goal Channel Link Code

`POST /goals/channel_link_codes`

## Request

- Base URL: `https://api.imperfect.co` (the document declares no server; this is the origin it was published from)
- URL: `https://api.imperfect.co/goals/channel_link_codes`
- Auth: none declared

One deep link for a phone tap or a desktop QR; minting sends nothing.

## Request body

- GoalChannelLinkCodeRequest: Affirmative coach-chat consent, bound to the sender when they send the code.
  - `channel` 'whatsapp' | 'texts', required
  - `coach_chat_consent` true, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-13** `67858cd90634`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/imperfect/apis/imperfect-api/changes/goals/channel_link_codes/post.md)

---

[API](https://skmtc.dev/imperfect/apis/imperfect-api.md) - [All operations](https://skmtc.dev/imperfect/apis/imperfect-api/llms.txt) - [OpenAPI document](https://skmtc.dev/imperfect/apis/imperfect-api/revisions/18d930bc8262?raw)
