Introduction

Authentication

The Campaign API uses two distinct credentials depending on what you’re doing.

JWT token

Used only for API-key management (generate / revoke). Pass it in the Authorization header:

Authorization: Bearer <your_jwt_token>

X-API-Key

Used for every campaign operation (create surveys, ads, toggle live, etc.). Pass it in the X-API-Key header:

X-API-Key: nfthing_your_api_key_here

You can only have one active API key at a time. If you generate a new key while one already exists, the existing key is returned.