---
title: "Alias"
method: POST
path: "/v1/alias"
tags: ["HTTP API"]
---

# Alias

`POST /v1/alias`

The alias call lets you merge different identities of a known user.

## Request body

- AliasPayload
  - `userId` string — Unique identifier for a particular user in your database.
  - `previousId` string — The previous unique identifier of the user.
  - `context` object — Dictionary of information that provides context about a message.
    - `traits` object
      - `trait1` string — New value for trait1.
    - `ip` string — IP address.
    - `library` object
      - `name` string — Name of the library.
  - `timestamp` string, date-time — The timestamp of the message’s arrival.

## Response `200`

StatusOK

## Other responses

- `400` — StatusBadRequest
- `401` — StatusUnauthorized
- `404` — StatusNotFound
- `413` — StatusRequestEntityTooLarge
- `429` — StatusTooManyRequests

---

[API](https://skmtc.dev/rudderlabs/apis/rudderstack-http-api.md) · [All operations](https://skmtc.dev/rudderlabs/apis/rudderstack-http-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rudderlabs/rudderstack-http-api/revisions/51895af9035c/schema)
