---
updatedAt: 2026-03-13T17:01:00.000Z
agentTools:
  projectIndex: https://developers.masspay.io/llms.txt
---

# Get all stored user attributes

This **GET** endpoint is used to retrieve all stored user attributes for all destination token. <br> You can use this endpoint to retrieve user attributes and provide personalized service to your users based on their preferences, demographic data, or other relevant information. <br> To use this endpoint, you need to provide the `user_token` as parameters in the URL Path. <br> The endpoint will then return all the stored attributes for the provided user in the context of the destination token. If multiple `attribute set tokens` are available, all the sets and their values will be returned.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "description": "MassPay API",
    "version": "1.0.0",
    "title": "MassPay API",
    "termsOfService": "https://www.masspay.io/terms/",
    "contact": {
      "name": "MassPay",
      "email": "info@masspay.io",
      "url": "https://www.masspay.io"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    }
  },
  "tags": [
    {
      "name": "Attribute",
      "description": "The attribute resource describes attributes of a user. For instance their bank account number, ID number, DOB, etc."
    }
  ],
  "paths": {
    "/attribute/{user_token}": {
      "get": {
        "tags": [
          "Attribute"
        ],
        "summary": "Get all stored user attributes",
        "description": "This **GET** endpoint is used to retrieve all stored user attributes for all destination token. <br> You can use this endpoint to retrieve user attributes and provide personalized service to your users based on their preferences, demographic data, or other relevant information. <br> To use this endpoint, you need to provide the `user_token` as parameters in the URL Path. <br> The endpoint will then return all the stored attributes for the provided user in the context of the destination token. If multiple `attribute set tokens` are available, all the sets and their values will be returned.",
        "operationId": "getAllAttrs",
        "parameters": [
          {
            "name": "user_token",
            "in": "path",
            "description": "Token representing the user to retrieve attributes for",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "schema": {
              "type": "boolean",
              "default": false,
              "example": false
            },
            "in": "query",
            "name": "show_translated_labels",
            "description": "When set to true, the language that is set on the user profile will be used to display the labels and expected values. When false, English labels will be used."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Unique key to prevent duplicate processing",
            "schema": {
              "type": "string"
            }
          },
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 2,
              "pattern": "^[a-z]{2}$",
              "default": "en",
              "example": "en"
            },
            "in": "header",
            "name": "Language",
            "description": "When provided, it is used in conjunction with `show_translated_labels` and overrides the language setting of the user profile"
          }
        ],
        "responses": {
          "200": {
            "description": "successful operation",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AllAttributesSetResp"
                  }
                },
                "examples": {
                  "All stored user attributes": {
                    "value": [
                      {
                        "destination_token": "dest_123e4567-e89b-12d3-a456-426614174000",
                        "payer_logo": "U3dhZ2dlciByb2Nrcw==",
                        "payer_name": "Elektra",
                        "exchange_rate": [
                          {
                            "currency_symbol": "MXN",
                            "exchange_rate": 18.37
                          }
                        ],
                        "max_limit": 10000,
                        "min_limit": 0,
                        "number_of_locations": 13007,
                        "estimated_availability": "2020-07-21T17:32:28Z",
                        "additional_description": "Requires drivers license to pickup funds",
                        "is_dynamic_token": true,
                        "attributes": [
                          {
                            "attr_set_token": "attr_set_e2ca24e9-c546-4c64-90d2-cb8e70e7c9ba",
                            "last_attr_value_used": true,
                            "label": "JPMorgan Chase",
                            "attributes": [
                              {
                                "token": "attr_e2ca24e9-c546-4c64-90d2-cb8e70e7c9ba",
                                "label": "Checking Account Number",
                                "validation": "[0-9]{50}",
                                "is_optional": true,
                                "value": "432532532",
                                "expected_value": "Date format MM/DD/YYYY",
                                "type": "BankAccountNumber",
                                "input_type": "text"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error400"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized.",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden.",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error403"
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error404"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed.",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error405"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error.",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error500"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Time-out.",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error504"
                }
              }
            }
          }
        },
        "security": [
          {
            "AUTHORIZER_NAME": []
          },
          {
            "api_key": []
          }
        ]
      },
      "parameters": [
        {
          "schema": {
            "type": "string",
            "example": "usr_585ebb5b-e928-477d-9244-fb6af8f8dadb"
          },
          "name": "user_token",
          "in": "path",
          "required": true,
          "description": "Token representing the user to store attributes for"
        }
      ]
    }
  },
  "servers": [
    {
      "url": "https://{environment}.masspay.io/{VERSION}",
      "description": "MassPay's API server",
      "variables": {
        "VERSION": {
          "default": "v1.0.0",
          "enum": [
            "v1.0.0"
          ]
        },
        "environment": {
          "default": "api",
          "enum": [
            "api",
            "staging-api"
          ]
        }
      }
    }
  ],
  "components": {
    "schemas": {
      "AllAttributesSetResp": {
        "type": "object",
        "x-examples": {
          "Example 1": {
            "destination_token": "dest_123e4567-e89b-12d3-a456-426614174000",
            "payer_logo": "U3dhZ2dlciByb2Nrcw==",
            "payer_name": "Elektra",
            "exchange_rate": [
              {
                "currency_symbol": "MXN",
                "exchange_rate": 18.37
              }
            ],
            "fee": 8,
            "max_limit": 10000,
            "min_limit": 0,
            "source_amount": 104.3,
            "number_of_locations": 0,
            "estimated_availability": "2020-07-21T17:32:28Z",
            "additional_description": "Requires drivers license to pickup funds",
            "is_dynamic_token": true,
            "attributes": [
              {
                "token": "attr_e2ca24e9-c546-4c64-90d2-cb8e70e7c9ba",
                "attr_set_token": "attr_set_e2ca24e9-c546-4c64-90d2-cb8e70e7c9ba",
                "label": "Checking Account Number",
                "validation": "[0-9]{50}",
                "is_optional": true,
                "value": "432532532",
                "expected_value": "Date format MM/DD/YYYY",
                "type": "BankAccountNumber",
                "input_type": "text",
                "last_attr_value_used": true
              }
            ]
          }
        },
        "properties": {
          "destination_token": {
            "type": "string",
            "description": "Token that represents the payout destination. 36 characters long",
            "format": "uuid",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          "payer_logo": {
            "type": "string",
            "format": "byte",
            "description": "base64 representation of the payer logo",
            "example": "U3dhZ2dlciByb2Nrcw=="
          },
          "payer_name": {
            "type": "string",
            "example": "Elektra",
            "description": "Name of payer"
          },
          "exchange_rate": {
            "type": "array",
            "description": "Lists all available currencies and their estimated rates",
            "items": {
              "type": "object",
              "required": [
                "currency_symbol",
                "exchange_rate"
              ],
              "properties": {
                "currency_symbol": {
                  "type": "string",
                  "example": "MXN",
                  "description": "Using [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format."
                },
                "exchange_rate": {
                  "type": "number",
                  "description": "Estimated rate",
                  "format": "double",
                  "example": 18.37
                }
              }
            }
          },
          "max_limit": {
            "type": "number",
            "description": "The maximum amount (inclusive) the user can send with this service. 0 if no upper limit",
            "format": "double",
            "example": 10000
          },
          "min_limit": {
            "type": "number",
            "description": "The minimum amount (inclusive) the user can send with this service. 0 if no lower limit",
            "format": "double",
            "example": 0
          },
          "number_of_locations": {
            "type": "integer",
            "default": 0,
            "description": "Total number of locations. Mostly relevant for cash pickup services. 0 if unknown or irrelevant",
            "format": "int32",
            "example": 13007,
            "minimum": 0
          },
          "estimated_availability": {
            "type": "string",
            "format": "date-time",
            "example": "2020-07-21T17:32:28Z",
            "description": "Estimated availability of funds. When funds would be available to pickup/deposited"
          },
          "additional_description": {
            "type": "string",
            "example": "Requires drivers license to pickup funds",
            "description": "When available, additional description that explains the service offered or requirements for funds delivery."
          },
          "is_dynamic_token": {
            "type": "boolean",
            "description": "When set to true, it indicates that this destination_token will auto retry the transaction for a set time until it is successful or timesout. False value means the transaction will be processed by the payer in real-time with instant feedback on success/failure."
          },
          "attributes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AttrSetRequirement"
            }
          }
        }
      },
      "AttrSetRequirement": {
        "type": "object",
        "xml": {
          "name": "AttrsRequirement"
        },
        "x-examples": {
          "Attribute Set Requirement": {
            "attr_set_token": "attr_set_e2ca24e9-c546-4c64-90d2-cb8e70e7c9ba",
            "last_attr_value_used": true,
            "label": "JPMorgan Chase",
            "attributes": [
              {
                "token": "attr_e2ca24e9-c546-4c64-90d2-cb8e70e7c9ba",
                "label": "Checking Account Number",
                "validation": "[0-9]{50}",
                "is_optional": true,
                "value": "432532532",
                "expected_value": "Date format MM/DD/YYYY",
                "type": "CardNumber",
                "input_type": "text"
              }
            ]
          }
        },
        "x-tags": [
          "Attribute"
        ],
        "required": [
          "attr_set_token",
          "last_attr_value_used"
        ],
        "properties": {
          "attr_set_token": {
            "type": "string",
            "example": "attr_set_e2ca24e9-c546-4c64-90d2-cb8e70e7c9ba",
            "description": "The token that represents the stored attributes for this payer. You would use this token in attr_set_token of `initiatePayout` if you have to specify an account number when paying a transaction out. For attributes that are not endpoint specific, like ID, EIN, SSN, etc, `attr_set_token` will not be set."
          },
          "last_attr_value_used": {
            "type": "boolean",
            "description": "If set to true, it means this was the last value that was used and if no attr_set_token is provided to init payout, this value will be used by default"
          },
          "label": {
            "type": "string",
            "description": "User-defined label for identifying or naming the set of attributes. Useful for UI display or future reference.",
            "example": "JPMorgan Chase"
          },
          "destination_currency": {
            "type": "string",
            "description": "The currency that the `attr_set_token` is associated with"
          },
          "attributes": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "token",
                "label",
                "validation",
                "is_optional",
                "value",
                "expected_value",
                "type",
                "input_type"
              ],
              "properties": {
                "token": {
                  "type": "string",
                  "example": "attr_e2ca24e9-c546-4c64-90d2-cb8e70e7c9ba",
                  "description": "The token that represents the attribute."
                },
                "label": {
                  "type": "string",
                  "example": "Checking Account Number",
                  "description": "The label that describes that required attribute"
                },
                "validation": {
                  "type": "string",
                  "example": "[0-9]{50}",
                  "description": "RegEx that validates that input"
                },
                "is_optional": {
                  "type": "boolean",
                  "example": true,
                  "description": "Flag to indicate whether this field is required or not"
                },
                "value": {
                  "type": "string",
                  "example": "432532532",
                  "description": "The existing value that is stored. 'Null' if no existing value is stored."
                },
                "expected_value": {
                  "type": "string",
                  "example": "Date format MM/DD/YYYY",
                  "description": "Written explanation of the value that the regex validation requires"
                },
                "type": {
                  "type": "string",
                  "example": "BankAccountNumber",
                  "description": "The type of attribute",
                  "enum": [
                    "CardNumber",
                    "BankAccountType",
                    "BankAccountNumber",
                    "BankAccountBranchNumber",
                    "BankName",
                    "PhoneNumber",
                    "Gender",
                    "IdentificationNumber",
                    "BillReferenceNumber",
                    "BankRoutingNumber",
                    "BankAccountName",
                    "MaidenName",
                    "SocialSecurity",
                    "EmploymentName",
                    "EmploymentAddress",
                    "EmploymentPhone",
                    "EmploymentOccupation",
                    "EmploymentSupervisor",
                    "RemittanceReason",
                    "Relationship",
                    "SecondLastName",
                    "SWIFT",
                    "BirthCountry",
                    "SourceOfFunds",
                    "DateOfBirth",
                    "CardExpiration",
                    "CardZip",
                    "IdentificationType",
                    "BankCity",
                    "BankState",
                    "IDSelfieCollection",
                    "City",
                    "Country",
                    "IdentificationExpiration",
                    "Address1",
                    "IFramePaymentCollection",
                    "PostalCode",
                    "GuardianFullName",
                    "GuardianGovIDType",
                    "GuardianGovIDNumber",
                    "GuardianConsent",
                    "EIN",
                    "WalletAddress",
                    "OAuthGrant",
                    "SecurityAnswer"
                  ]
                },
                "input_type": {
                  "type": "string",
                  "enum": [
                    "text",
                    "options",
                    "date"
                  ],
                  "example": "text",
                  "default": "text",
                  "description": "The type of input field that is suggested for this this attribute"
                }
              }
            }
          }
        }
      },
      "Error400": {
        "description": "Bad request.",
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "title": {
            "type": "string",
            "description": "Error title.",
            "enum": [
              "Bad request."
            ],
            "example": "Bad request."
          },
          "message": {
            "type": "string",
            "description": "Error description.",
            "enum": [
              "The request was invalid or malformed. Please ensure that the request body conforms to the required format and that all required parameters are included."
            ],
            "example": "The request was invalid or malformed. Please ensure that the request body conforms to the required format and that all required parameters are included."
          },
          "code": {
            "type": "integer",
            "description": "Error code.",
            "enum": [
              400
            ],
            "example": 400
          },
          "error": {
            "type": "object",
            "properties": {
              "reason": {
                "type": "string",
                "example": "Error initiating payout",
                "description": "Reason for error"
              },
              "details": {
                "type": "array",
                "description": "Specific details of the cause of the error",
                "items": {
                  "type": "string",
                  "example": "Source amount cannot be $0"
                }
              }
            }
          }
        },
        "required": [
          "message",
          "code"
        ]
      },
      "Error401": {
        "description": "Unauthorized.",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Error title.",
            "enum": [
              "Unauthorized."
            ],
            "example": "Unauthorized."
          },
          "message": {
            "type": "string",
            "description": "Error description.",
            "enum": [
              "Authentication failed or credentials were not provided. Please ensure that you have provided valid API credentials and that they are authorized to access the MassPay API."
            ],
            "example": "Authentication failed or credentials were not provided. Please ensure that you have provided valid API credentials and that they are authorized to access the MassPay API."
          },
          "code": {
            "type": "integer",
            "description": "Error code.",
            "enum": [
              401
            ],
            "example": 401
          }
        },
        "additionalProperties": false,
        "required": [
          "error",
          "message",
          "code"
        ]
      },
      "Error403": {
        "description": "Forbidden.",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Error title.",
            "enum": [
              "Forbidden."
            ],
            "example": "Forbidden."
          },
          "message": {
            "type": "string",
            "description": "Error description.",
            "enum": [
              "The requested action is not allowed or the API credentials do not have sufficient permissions. Please ensure that the API credentials used for the request have the necessary permissions to perform the requested action."
            ],
            "example": "The requested action is not allowed or the API credentials do not have sufficient permissions. Please ensure that the API credentials used for the request have the necessary permissions to perform the requested action."
          },
          "code": {
            "type": "integer",
            "description": "Error code.",
            "enum": [
              403
            ],
            "example": 403
          }
        },
        "additionalProperties": false,
        "required": [
          "error",
          "message",
          "code"
        ]
      },
      "Error404": {
        "description": "Not found.",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Error title.",
            "enum": [
              "Not found."
            ],
            "example": "Not found."
          },
          "message": {
            "type": "string",
            "description": "Error description.",
            "enum": [
              "The requested resource was not found. Please ensure that the URL for the request is correct and that the requested resource exists."
            ],
            "example": "The requested resource was not found. Please ensure that the URL for the request is correct and that the requested resource exists."
          },
          "code": {
            "type": "integer",
            "description": "Error code.",
            "enum": [
              404
            ],
            "example": 404
          }
        },
        "additionalProperties": false,
        "required": [
          "error",
          "message",
          "code"
        ]
      },
      "Error405": {
        "description": "Method not allowed.",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Error title.",
            "enum": [
              "Method not allowed."
            ],
            "example": "Method not allowed."
          },
          "message": {
            "type": "string",
            "description": "Error description.",
            "enum": [
              "The HTTP method used for the request is not supported by the MassPay API. Please ensure that you are using the correct HTTP method (e.g., POST) for the specific MassPay API endpoint."
            ],
            "example": "The HTTP method used for the request is not supported by the MassPay API. Please ensure that you are using the correct HTTP method (e.g., POST) for the specific MassPay API endpoint."
          },
          "code": {
            "type": "integer",
            "description": "Error code.",
            "enum": [
              405
            ],
            "example": 405
          }
        },
        "additionalProperties": false,
        "required": [
          "error",
          "message",
          "code"
        ]
      },
      "Error500": {
        "description": "Internal server error",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Error title.",
            "enum": [
              "Internal server error."
            ],
            "example": "Internal server error."
          },
          "message": {
            "type": "string",
            "description": "Error description.",
            "enum": [
              "An unexpected error occurred on the server-side while processing the request. Please try again later or contact support if the issue persists."
            ],
            "example": "An unexpected error occurred on the server-side while processing the request. Please try again later or contact support if the issue persists."
          },
          "code": {
            "type": "integer",
            "description": "Error code.",
            "enum": [
              500
            ],
            "example": 500
          }
        },
        "additionalProperties": false,
        "required": [
          "error",
          "message",
          "code"
        ]
      },
      "Error504": {
        "description": "Gateway Time-out.",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Error title.",
            "enum": [
              "Gateway Time-out."
            ],
            "example": "Gateway Time-out."
          },
          "message": {
            "type": "string",
            "description": "Error description.",
            "enum": [
              "The request timed out while waiting for a response from the server. Please try again later or contact support if the issue persists."
            ],
            "example": "The request timed out while waiting for a response from the server. Please try again later or contact support if the issue persists."
          },
          "code": {
            "type": "integer",
            "description": "Error code.",
            "enum": [
              500
            ],
            "example": 500
          }
        },
        "additionalProperties": false,
        "required": [
          "error",
          "message",
          "code"
        ]
      }
    },
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "x-api-key",
        "in": "header"
      },
      "AUTHORIZER_NAME": {
        "name": "Authorization",
        "in": "header",
        "type": "apiKey"
      }
    }
  }
}
```