Skip to main content
POST
Invite a user

Authorizations

Authorization
string
header
required

A group API key, sent as Authorization: Bearer sw_live_…. Keys from staging and the demo start sw_test_ instead. A group admin creates keys in Settings → Integrations → API keys.

Scopes

users:write

Headers

Idempotency-Key
string

Unique per user: any printable text up to 255 characters. A retry with the same key and body within 24 hours answers with the first user instead of making another. Recommended.

Required string length: 1 - 255

Body

application/json

Someone who already uses Scoutworks elsewhere is added as an invitation they accept when they next sign in. A field not listed here is refused with a 400.

email
string<email>
required
Maximum string length: 254
Pattern: ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
firstName
string
required
Required string length: 1 - 100
personType
enum<string>
required

leader, young_leader or trustee. group_admin answers 403: an admin adds another admin in the Scoutworks app.

Available options:
group_admin,
leader,
young_leader,
trustee
lastName
string
Maximum string length: 100
sectionIds
string<uuid>[]

The sections they help run, from GET /sections. For a Young Leader, the sections they help, not their own.

Maximum array length: 30
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
memberId
string<uuid>

For a Young Leader: their own member record, from GET /members. Required for young_leader.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
alsoTrustee
boolean

Also make a leader or Young Leader a trustee.

sendInvitation
boolean
default:true

Send the invitation email now (the default). With false, they are added and an admin sends the invitation later from Scoutworks.

{key}
any

Response

The user an earlier request with the same Idempotency-Key made.

data
object
required
{key}
any