---
title: "invite_member"
method: POST
path: "/v1/invitations"
---

# invite_member

`POST /v1/invitations`

## Request

- Base URL: `https://app.agentlinkops.com`
- URL: `https://app.agentlinkops.com/v1/invitations`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Remaining arguments go in a JSON object body.

## Headers

- `X-Workspace-ID` string

## Request body

- object
  - `email` string, required: Email address to bind an invitation to; AgentLinkOps does not send the invitation.
  - `role` 'admin' | 'member' | 'viewer': Workspace access role; cannot exceed the acting member’s authority.
  - `projectIds` string[]: Accessible project IDs. Where nullable, null grants all projects.

## Response `201`

Remaining arguments go in a JSON object body.

- object
  - `id` string, required: Resource identifier returned by the operation.
  - `workspace_id` string, required: Workspace that owns this record.
  - `email` string, required
  - `role` string, required
  - `project_ids` string[], nullable, required: Accessible project identifiers; null grants access to all workspace projects.
  - `invited_by` string, required
  - `created_at` string, required: UTC timestamp when the record was created.
  - `expires_at` string, required
  - `accepted_at` string, nullable, required
  - `revoked_at` string, nullable, required
  - `state` string, required: Saved lifecycle or evidence state, as enumerated for this record.
  - `token` string: Invitation token returned only at creation. The accepting account must have the matching verified email.

## Other responses

- `429`: Request-rate or usage refusal. Inspect error.code and recovery details before retrying.
- `default`: Error envelope. Non-configuration 5xx messages are masked and details omitted; allowlisted configuration errors retain static operator recovery.

---

[API](https://skmtc.dev/agentlinkops/apis/agentlinkops-http-api.md) · [All operations](https://skmtc.dev/agentlinkops/apis/agentlinkops-http-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentlinkops/apis/agentlinkops-http-api/revisions/1bf30c2912b2?raw)
