---
updatedAt: 2026-04-23T05:40:30.000Z
---

# Creates a new team member

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "API V1",
    "version": "v1"
  },
  "paths": {
    "/team_members": {
      "post": {
        "summary": "Creates a new team member",
        "tags": [
          "Team Members"
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "team member created"
          },
          "422": {
            "description": "invalid parameters"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "member_id": {
                    "type": "string",
                    "description": "Hash ID of existing user (optional if phone_number or email provided)"
                  },
                  "phone_number": {
                    "type": "string",
                    "description": "Phone number of the person (primary key for user lookup/creation)"
                  },
                  "email": {
                    "type": "string",
                    "description": "Email of the person (secondary key for user lookup/creation)"
                  },
                  "full_name": {
                    "type": "string",
                    "description": "Full name for new user creation"
                  },
                  "first_name": {
                    "type": "string",
                    "description": "First name for new user creation"
                  },
                  "last_name": {
                    "type": "string",
                    "description": "Last name for new user creation"
                  },
                  "role_id": {
                    "type": "integer",
                    "description": "ID of the role to assign"
                  },
                  "scope_type": {
                    "type": "string",
                    "enum": [
                      "Chapter",
                      "Organization"
                    ],
                    "description": "Type of scope"
                  },
                  "scope_id": {
                    "type": "integer",
                    "description": "ID of the scope (Chapter or Organization)"
                  },
                  "invite_via": {
                    "type": "string",
                    "enum": [
                      "sms",
                      "email"
                    ],
                    "description": "How to send the invitation"
                  },
                  "task_id": {
                    "type": "integer",
                    "description": "Optional task ID to assign the member to"
                  }
                },
                "required": [
                  "role_id",
                  "scope_type",
                  "scope_id",
                  "invite_via"
                ]
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.solidarity.tech/v1",
      "variables": {
        "defaultHost": {
          "default": "api.solidarity.tech/v1"
        }
      }
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  }
}
```