# Invite a person with a role

`POST /workspace/people` · Rivier · workspace

Invite a person with a role.

- Scope: workspace:admin
- Graphql: Mutation.workspacePeopleInvite
- Sdk: workspace.people.invite
- Cli: workspace people invite

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "email": {
      "type": "string",
      "format": "email",
      "maxLength": 320
    },
    "role": {
      "type": "string",
      "enum": [
        "owner",
        "manager",
        "approver",
        "editor",
        "agent",
        "viewer",
        "accountant"
      ]
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "email",
    "role"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/workspace/people' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "email": "name@example.com",
  "role": "owner"
}'
```
