Skip to Content
SendlySendly
API ReferenceMembers

Add a member by email

POST
/api/projects/{id}/members

Adds the person whose Sendly account uses this email, at once. An email with no account answers 404 NOT_FOUND: the person signs up first. Only a project admin or owner may add members.

Requires the members:write scope — Add and remove project members and change their roles.

cookiebetter-auth.session_token<token>

BetterAuth session cookie. Used by the dashboard / browser clients. When present, the active project is taken from the x-project-id header.

id*string

Project id.

application/json
  1. body
email*string
Formatemail
role?string
Default"MEMBER"
Value in"ADMIN""MEMBER"

Response Body

OK

application/json
  1. response
success*true
Value intrue
data*
Example Request
curl -X POST 'https://api.sendly.now/api/projects/string/members' \  -H 'Content-Type: application/json' \  -d '{  "email": "user@example.com"}'
Example Response
{  "success": true,  "data": {    "userId": "string",    "email": "string",    "role": "OWNER"  }}