---
title: "Invite member"
method: POST
path: "/v1/commands/invite_member"
tags: ["Projects and access"]
---

# Invite member

`POST /v1/commands/invite_member`

## Request

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

Shared command transport. All logical arguments in JSON; no query or Idempotency-Key header. See canonical operation reference.

## Headers

- `X-Workspace-ID` string

## Request body

- InviteMemberInput
  - `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 `200`

Command result, including queued admission.

- InviteMemberOutput
  - `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/2a712a1dcfa7?raw)
