Auth & API keys
What you'll achieve: Create a project API key and use it to send leads via the API or widget. Keys are project-scoped and shown only once.
Creating an API key
In the app: open a project → Project page → Generate API key. Copy the key immediately; it is not shown again. Use it in the X-Api-Key header or Authorization: Bearer YOUR_KEY when calling the Lead API.
Using the key
- Lead API: Send
X-Api-Key: YOUR_KEYorAuthorization: Bearer YOUR_KEYwithPOST https://swiftcrm.in/api/public/lead. - Widget: Put the key in the snippet as
data-key="YOUR_KEY". The widget sends it with each lead submission.
Security
Keys are stored hashed. If you lose a key, generate a new one and update your integration. Add your site domain to the project's Allowed domains so we only accept leads from those origins.