Skip to content

Add a member

POST
/api/orgs/{org}/members
curl --request POST \
--url https://api.wrktr.com/api/orgs/example/members \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "email": "example", "role": "owner" }'

Owners only. Someone with an account joins at once; anyone else is invited, and joins when they first sign in with that email.

org
required
string
Media typeapplication/json
object
email
required
string
role
required
string
Allowed values: owner member

AddMemberResult

Media typeapplication/json
object
outcome
required
string
Allowed values: added invited
Example
{
"outcome": "added"
}

Unauthorized

Media typeapplication/json
object
_tag
required
string
Allowed values: Unauthorized
message
required
string
Example
{
"_tag": "Unauthorized"
}

Forbidden

Media typeapplication/json
object
_tag
required
string
Allowed values: Forbidden
message
required
string
Example
{
"_tag": "Forbidden"
}

OrgNotFound

Media typeapplication/json
object
_tag
required
string
Allowed values: OrgNotFound
org
required
string
Example
{
"_tag": "OrgNotFound"
}

InvalidInput

Media typeapplication/json
object
_tag
required
string
Allowed values: InvalidInput
message
required
string
Example
{
"_tag": "InvalidInput"
}