Authentication
Direct API key
Section titled “Direct API key”Pass your API key in the x-api-key header with every request.
curl -X POST https://snapchat-text-overlay-api.com/v1/overlay \ -H "x-api-key: snap_live_your_key" \ -F "asset=@photo.jpg" \ -F "text=hello world"| Detail | Value |
|---|---|
| Header | x-api-key |
| Format | snap_live_... |
| Where to get it | Dashboard after subscribing |
RapidAPI
Section titled “RapidAPI”If you subscribed through RapidAPI, use your RapidAPI key instead. RapidAPI adds its own authentication headers automatically.
curl -X POST https://snap-lay.p.rapidapi.com/v1/overlay \ -H "x-rapidapi-host: snap-lay.p.rapidapi.com" \ -H "x-rapidapi-key: your_rapidapi_key" \ -F "asset=@photo.jpg" \ -F "text=hello world"Error responses
Section titled “Error responses”| Status | Meaning |
|---|---|
401 | Missing or invalid API key |
403 | Key is inactive or suspended |