# Send a sign-in code and link to an address as a test

`POST /customer-accounts/test-link` · Rivier · contacts

Send a sign-in code and link to an address as a test. In test mode the mail goes only to the project's test addresses.

- Scope: contacts:admin
- Graphql: Mutation.contactsCustomerAccountTestLink
- Sdk: contacts.customerAccount.testLink
- Cli: contacts customer account test link

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "email": {
      "type": "string",
      "format": "email",
      "maxLength": 254
    },
    "project": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    }
  },
  "required": [
    "email"
  ],
  "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/customer-accounts/test-link' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "email": "name@example.com"
}'
```
