Projects
An account can hold several projects — separate CRMs with their own people, lists and settings. An API call works in your Default project unless it names another.
List your projects
Code
Name a project on a call
Send its id in the X-Entayo-Project header:
Code
- Not a number →
400bad_project. - Not one of your projects →
404project_not_found. - A Zocton key made for chosen projects: the header is needed on every call
(
400project_requiredwithout it), and a project the key was not given is403project_not_allowed.GET /key-projectslists the projects the key may use.
Empty answers?
Without the header every call works in Default. If your people are in
another project, Default answers with an empty list — add X-Entayo-Project.
In the API reference, fill the X-Entayo-Project box on the endpoint (and
Authorize with your key) before Send.
A call is never quietly sent to Default when the project is wrong, so a typo cannot write into the wrong CRM.