---
title: "Check an Instagram handle before sending the coach through OAuth"
method: POST
path: "/api/onboarding/instagram-preflight"
tags: ["Onboarding"]
---

# Check an Instagram handle before sending the coach through OAuth

`POST /api/onboarding/instagram-preflight`

## Request

- Base URL: `https://api.setluca.com`
- URL: `https://api.setluca.com/api/onboarding/instagram-preflight`
- Auth: API key in cookie `luca.session_token`

**Session-only.** This endpoint isn't on the API-key allowlist. An organization API key gets a 403 here, whatever scopes it holds.

## Headers

- `Luca-API-Version` '1'

## Request body

- InstagramPreflight
  - `handle` string, required

## Response `200`

ok

- InstagramPreflightResponse
  - `handle` string, required
  - `accountType` 'business' | 'creator' | 'personal' | 'unknown', required
  - `followerCount` integer, nullable, required
  - `displayName` string, nullable, required

## Other responses

- `401`: unauthorized
- `429`: rate limited
- `500`: internal error
- `503`: service unavailable

---

[API](https://skmtc.dev/setluca/apis/luca-api.md) · [All operations](https://skmtc.dev/setluca/apis/luca-api/llms.txt) · [OpenAPI document](https://skmtc.dev/setluca/apis/luca-api/revisions/90a200e4100b?raw)
