Create a teammate

POST https://api.tamio.com/v2/teammates/create

Creates a new teammate with a specified role and optional custom permissions. An invitation email is sent to the provided address. When role is custom, the permissions object is required.

Body Parameters

name string*

First name.

last_name string

Last name.

email string*

Email address for the teammate account.

role string*

Predefined role or custom for granular permissions.

accountantdevelopermarketerguestfulfilmentadministrator
country string*

Country code.

permissions Permissions

Responses

200 Teammate created

Teammate created

status integer
teammate Teammate
400 Validation or business-logic error
401 Missing or invalid API key
/teammates/create
1const response = await fetch("https://api.tamio.com/v2/teammates/create", {
2 method: "POST",
3 headers: {
4 "Authorization": "Bearer YOUR_API_KEY",
5 "Content-Type": "application/json"
6 },
7 body: JSON.stringify({
8 // ... request body
9 })
10});
11const data = await response.json();
Responses
{
  "status": 200,
  "teammate": {
    "id": "string",
    "object": "teammate",
    "email": "string",
    "name": "string",
    "last_name": "string",
    "country": "string",
    "last_login": 0,
    "role": "string",
    "verified": false,
    "permissions": {}
  }
}