Generating an API key
To use the NeetoEngage APIs, you must first generate an API key:- Go to the Admin panel. Under General, click API keys.
- Click Add API key. The Add new API key pane opens.
- Enter a Name for the key.
- Pick an Expiry date, or check Never expires.
- Click Save changes.
- Copy the key from the API keys list using the copy icon. The key stays in the list, so you can copy it again later.
Making authenticated API requests
To authenticate your API requests, include a valid API key in theX-Api-Key header.
Header format
Include your API key in theX-Api-Key header of every request:
Accept header, it must allow application/json. Otherwise you receive a 406 response.
Error responses
401 Unauthorized
If your API key is missing, invalid, or expired, you’ll receive a 401 error:Common authentication issues
Invalid API key
Invalid API key
Problem: API key is missing or invalid.
Solution: Verify your API key is correct and hasn’t been revoked/expired.
Solution: Verify your API key is correct and hasn’t been revoked/expired.
Incorrect workspace subdomain
Incorrect workspace subdomain
Problem: Subdomain is left as the default value (spinkart) or incorrect.
Solution: Verify your subdomain name is properly added in the request URL. If no workspace exists for the subdomain, the API returns a 404 response.
Solution: Verify your subdomain name is properly added in the request URL. If no workspace exists for the subdomain, the API returns a 404 response.
API key from another Neeto product
API key from another Neeto product
Problem: The key was created in a different Neeto product.
Solution: Generate a new key in NeetoEngage.
Solution: Generate a new key in NeetoEngage.