---
title: "Applied from Spala Step Script."
method: POST
path: "/api/invitations"
tags: ["invitations"]
---

# Applied from Spala Step Script.

`POST /api/invitations`

## Request

- Base URL: `https://api.spala.ai/api`
- URL: `https://api.spala.ai/api/api/invitations`
- Auth: HTTP bearer

## Request body

- object
  - `email` string, required
  - `organizationId` string, required

## Response `200`

Successful response

- object
  - `message` string
  - `emailSendResult` object
    - `request` object
      - `method` string
      - `url` string
      - `headers` object
      - `queryParams` object
      - `body` object
        - `From` string
        - `To` string
        - `Subject` string
        - `HtmlBody` string
        - `MessageStream` string
      - `bodyKind` string
    - `response` object
      - `status` number
      - `headers` object
      - `body` object
      - `error` string
    - `error` string
  - `existing_invitations ` object[]
    - `id` string
    - `accepted_at` string
    - `created_at` string
    - `email` string
    - `expired_at` string
    - `invitation_token` string
    - `invited_at` string
    - `invited_by_id` string
    - `organization_id` string
    - `updated_at` string
    - `user_id` string

## Other responses

- `401`: Unauthorized - authentication required

---

[API](https://skmtc.dev/spala/apis/admin.md) · [All operations](https://skmtc.dev/spala/apis/admin/llms.txt) · [OpenAPI document](https://skmtc.dev/spala/apis/admin/revisions/723cc50571ee?raw)
