Skip to main content
POST
Add a member to a group
Adds one or more participants to a group. Use each participant’s Scrip id; the body does not accept ext:. Members who left can be added again. Adding an active member again returns 200. Leaving out role keeps their current role; sending it changes their role. To change only a role, use Update group member role. A request that adds a CLOSED participant returns 409 participant_inactive. A role change that would leave the group without an ADMIN returns 409 last_admin_cannot_be_removed. In either case, nothing in the request is applied.
See Groups for membership and role behavior.

Authorizations

Authorization
string
header
default:sk_...
required

Send your API key as Authorization: Bearer <key>.

Headers

Idempotency-Key
string

Unique key (1-255 printable ASCII characters) to make retries safe. Repeating the same request with the same key within 24 hours replays the original response (Idempotent-Replayed: true).

Maximum string length: 255

Path Parameters

group_id
string<uuid>
required

The group's id.

Body

application/json

Member details

Adds one participant to a group with participant_id and role, or adds several at once with members. Send one form or the other. An active member you add again keeps their role unless you send a new role.

participant_id
string<uuid>
required

The id (UUID) of one participant to add. ext: is not accepted. Use members to add several.

Example:

"f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"

on_behalf_of_participant_id
string<uuid>

The participant who asked for this change. Scrip stores it with the membership record; the API does not return it.

Example:

"f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b007"

role
enum<string>

Role for the single participant: MEMBER or ADMIN. A new or returning member gets MEMBER when you omit it. An active member keeps their current role when you omit it.

Available options:
MEMBER,
ADMIN
Example:

"MEMBER"

Response

Member added

Confirms that members were added to a group.

message
string

Confirmation message

Example:

"Member(s) added to group"