---
title: "Check if cohort code is available"
method: GET
path: "/cohorts/check-code/{code}"
tags: ["Cohorts"]
---

# Check if cohort code is available

`GET /cohorts/check-code/{code}`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/cohorts/check-code/{code}`
- Auth: HTTP bearer

Verify if a cohort code can be used

## Path parameters

- `code` string, required

## Response `200`

Code availability checked

- object
  - `success` boolean
  - `data` object
    - `available` boolean

## Other responses

- `401`: Unauthorized

---

[API](https://skmtc.dev/withmedley/apis/medley-api.md) - [All operations](https://skmtc.dev/withmedley/apis/medley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/withmedley/apis/medley-api/revisions/40aaac5ca6bd?raw)
