Create a new API key bound to your current team. The returned last_token is the actual JWT to use in the Authorization: Bearer <token> header on subsequent requests. Tokens have a 3-year expiry.
Important: save the token immediately — it is only returned in this response and cannot be retrieved later.
Security
bearerAuth
POST
curl -i -X POST \
https://leadgen.grinfi.io/id/api/jwt-tokens/create-api-key \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "production-integration"
}'API key created.
The actual JWT token. Pass this in Authorization: Bearer <token>. Save it immediately — it cannot be retrieved later.
Response
{ "jti": "mnsPNOxciRqSNFec", "user_id": 20, "team_id": 134, "name": "production-integration", "last_token": "string", "created_at": "2019-08-24T14:15:22Z" }