members
POST /v1/members/access-requests
Ask the people who manage the team for access to a screen.
Authentication
Send an API key as a bearer token. This endpoint checks no specific permission, so any key for your organisation can call it.
Where your organisation id goes
This endpoint takes org_id as a field in the JSON body.
Your organisation id is on the API keys screen in your dashboard, beside the key itself. It is the same id in every call you make.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X POST https://api.zinndigital.com/v1/members/access-requests \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "path": <string> }'Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
P2-011 (owner answer A088): the "Ask the owner for access" action. Any member of the organization may call it. It e-mails every member whose role may change roles (members.role.assign), other than the caller, naming the dashboard path the caller was refused, the caller's e-mail and role, and a link to the team page. It never grants anything: the caller's role is unchanged whatever this returns. The org is the body org_id, else the X-Zinn-Org header, else the caller's only org. An API key has no person to ask for and receives 403. Throttled per user.
Request body
| Name | Type | Required | What it is |
|---|---|---|---|
path | string | Yes | The dashboard path the member could not open (for example /billing). |
org_id | string | No | The organization to ask in. Defaults to the X-Zinn-Org header, then the caller's only org. |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
notified | integer | Yes | How many people who can change roles were e-mailed. |
Errors this endpoint can return
400 · 401 · 403 · 422 · 429