Browse the docs

API

Team

The api can list your team, so your tools can hand leads to the right person in an automation. Inviting people, roles and permissions are managed in the app under Administration > Team (see Team), not through the api.

List team members

GET https://gdwaapi.grapedawn.tech/api/v1/users returns the active members of your team, sorted by name. People who have been switched off are left out.

curl https://gdwaapi.grapedawn.tech/api/v1/users \
  -H "Authorization: Bearer lms_your_key"
[
  { "id": "3f2c9a1e-5b7d-4e8f-a0b1-c2d3e4f5a6b7", "fullName": "Asha Mehta" },
  { "id": "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d", "fullName": "Ravi Kumar" }
]

Each member has only an id and a fullName. Email addresses and roles are not shared.

Assign leads in an automation

Use a member's id as the userId of an assign step:

{
  "id": "toRavi",
  "type": "assign",
  "userId": "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d",
  "next": null
}

Always take ids from this list rather than typing them in. An assign step with no userId is listed in the automation's problems, and the automation cannot be switched on until it has one. See Automations.

How Team works in the app: Platform docs