---
title: "Store user attributes"
method: POST
path: "/attribute/{user_token}/{endpoint_token}/{currency}"
tags: ["Attribute"]
---

# Store user attributes

`POST /attribute/{user_token}/{endpoint_token}/{currency}`

This **POST** endpoint is used to store user attributes, allowing you to associate additional data with a user token. <br> To use this endpoint, you need to provide the `user_token`, `endpoint_token`, and `currency` as parameters in the URL Path. You also need to provide the attribute values as JSON parameters in the Request body. <br> If existing attributes are already stored for the user, this call will override their values.

## Path parameters

- `user_token` string, required
- `endpoint_token` string, required

## Headers

- `Idempotency-Key` string

## Request body

- AttrTxn
  - `values` AttrValue[], required
    - `token` string, required — The token that represents the attribute that needs to be updated.
    - `value` string, required — The value that needs to be stored for the associated token
  - `attr_set_token` string — The token that represents a set of attributes for a specific payer. Optional, specify the value if you're trying to add a value for a specific attributes set. If the existing values associated with the attr_set_token are different, this value will be ignored and a new attr_set_token would be issued.
  - `label` string — Optional user-defined label for identifying or naming this set of attributes. Useful for UI display or future reference.

## Response `201`

Succesfully created.

- object
  - `attr_set_token` string, required — `attr_set_token` associated with the stored attributes

## Other responses

- `400` — Bad request.
- `401` — Unauthorized.
- `403` — Forbidden.
- `404` — Not found.
- `405` — Method Not Allowed.
- `500` — Internal server error.
- `504` — Gateway Time-out.

---

[API](https://skmtc.net/masspay/apis/masspay-api.md) · [All operations](https://skmtc.net/masspay/apis/masspay-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/masspay/masspay-api/revisions/c03b61a6a551/schema)
