---
title: "Apply a dev-only Provider Lab scenario"
method: POST
path: "/api/integrations/provider-lab/apply"
tags: ["Integrations"]
---

# Apply a dev-only Provider Lab scenario

`POST /api/integrations/provider-lab/apply`

## Request

- Base URL: `https://api.setluca.com`
- URL: `https://api.setluca.com/api/integrations/provider-lab/apply`
- Auth: API key in cookie `luca.session_token`

Applies a Provider Lab scenario so a connector returns a failure or edge case you picked. Development only.

**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

- ProviderLabApply
  - `scenario` 'all_healthy' | 'instagram_comment_ready' | 'instagram_public_reply_blocked' | 'instagram_comment_duplicate_cooldown' | 'instagram_comment_ai_classifier' | 'instagram_comment_auto_sent' | 'instagram_account_disconnected' | 'whatsapp_freeform_open' | 'whatsapp_template_required' | 'whatsapp_template_missing' | 'crm_hubspot_ready' | 'crm_ghl_ready' | 'crm_conflict_or_missing_scope' | 'booking_ready' | 'booking_provider_down' | 'webhook_failed_replayable' | 'broadcast_ready' | 'broadcast_mixed_eligibility', required
  - `provider` 'telegram' | 'instagram' | 'messenger' | 'whatsapp'

## Response `200`

ok

- ProviderLabApplyResponse
  - `scenario` 'all_healthy' | 'instagram_comment_ready' | 'instagram_public_reply_blocked' | 'instagram_comment_duplicate_cooldown' | 'instagram_comment_ai_classifier' | 'instagram_comment_auto_sent' | 'instagram_account_disconnected' | 'whatsapp_freeform_open' | 'whatsapp_template_required' | 'whatsapp_template_missing' | 'crm_hubspot_ready' | 'crm_ghl_ready' | 'crm_conflict_or_missing_scope' | 'booking_ready' | 'booking_provider_down' | 'webhook_failed_replayable' | 'broadcast_ready' | 'broadcast_mixed_eligibility', required
  - `summary` object, required
    - `enabled` boolean, required
    - `activeScenario` 'all_healthy' | 'instagram_comment_ready' | 'instagram_public_reply_blocked' | 'instagram_comment_duplicate_cooldown' | 'instagram_comment_ai_classifier' | 'instagram_comment_auto_sent' | 'instagram_account_disconnected' | 'whatsapp_freeform_open' | 'whatsapp_template_required' | 'whatsapp_template_missing' | 'crm_hubspot_ready' | 'crm_ghl_ready' | 'crm_conflict_or_missing_scope' | 'booking_ready' | 'booking_provider_down' | 'webhook_failed_replayable' | 'broadcast_ready' | 'broadcast_mixed_eligibility' | 'null', nullable, required
    - `health` object[], required
      - `area` string, required
      - `status` 'ready' | 'degraded' | 'blocked' | 'missing', required
      - `message` string, required
    - `resources` object[], required
      - `type` string, required
      - `id` string, required
      - `label` string

## Other responses

- `400`: bad request
- `401`: unauthorized
- `403`: forbidden
- `404`: not found
- `429`: rate limited
- `500`: internal error

---

[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)
