# Contacts widget create

`POST /crm/widgets` · Rivier · contacts

Make a widget from a template (email signup, newsletter, waiting list, contact, lead form): a form with its words in seven languages, ready to embed. Returns the three embed options.

- Scope: contacts:write
- Graphql: Mutation.contactsWidgetCreate
- Sdk: contacts.widget.create
- Cli: contacts widget create

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "email_signup",
        "newsletter",
        "waitlist",
        "contact",
        "lead_form"
      ]
    },
    "name": {
      "type": "string",
      "maxLength": 120
    },
    "overrides": {
      "type": "object",
      "additionalProperties": {}
    }
  },
  "required": [
    "type"
  ],
  "additionalProperties": false
}
```

## Responses

- `201`: 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/crm/widgets' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "type": "email_signup"
}'
```
