Skip to main content
PATCH
/
v1
/
wallets
/
{walletId}
Update Wallet Identifier
curl --request PATCH \
  --url https://api.beta.getpara.com/v1/wallets/{walletId} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "userIdentifier": "bob@example.com"
}
'
import requests

url = "https://api.beta.getpara.com/v1/wallets/{walletId}"

payload = { "userIdentifier": "bob@example.com" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({userIdentifier: 'bob@example.com'})
};

fetch('https://api.beta.getpara.com/v1/wallets/{walletId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.beta.getpara.com/v1/wallets/{walletId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'userIdentifier' => 'bob@example.com'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.beta.getpara.com/v1/wallets/{walletId}"

payload := strings.NewReader("{\n \"userIdentifier\": \"bob@example.com\"\n}")

req, _ := http.NewRequest("PATCH", url, payload)

req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.patch("https://api.beta.getpara.com/v1/wallets/{walletId}")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"userIdentifier\": \"bob@example.com\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.beta.getpara.com/v1/wallets/{walletId}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"userIdentifier\": \"bob@example.com\"\n}"

response = http.request(request)
puts response.read_body
{
  "id": "0a1b2c3d-4e5f-6789-abcd-ef0123456789",
  "type": "EVM",
  "scheme": "DKLS",
  "createdAt": "2024-01-15T09:30:00Z",
  "address": "0x742d35Cc6634C0532925a3b844Bc9e7595f...",
  "publicKey": "<string>",
  "userIdentifier": "alice@example.com"
}
{
"code": "INVALID_REQUEST",
"message": "type must be one of EVM, SOLANA, COSMOS, STELLAR"
}
{
"code": "UNAUTHORIZED",
"message": "secret api key not provided"
}
{
"code": "FORBIDDEN",
"message": "invalid secret api key"
}
{
"code": "NOT_FOUND",
"message": "wallet not found"
}
{
"code": "WALLET_ALREADY_CLAIMED",
"message": "cannot update identifier on a claimed wallet"
}
{
"code": "RATE_LIMITED",
"message": "Rate limit exceeded, try again shortly."
}
{
"code": "INTERNAL_ERROR",
"message": "Internal Server Error"
}

Authorizations

X-API-Key
string
header
default:sk_your_secret_key_here
required

Your partner secret key (server-side only)

Headers

X-Request-Id
string<uuid>

UUID for request tracing. Para returns one if omitted.

Path Parameters

walletId
string
required

Wallet ID

Example:

"0a1b2c3d-4e5f-6789-abcd-ef0123456789"

Body

application/json
userIdentifier
string
required

New user identifier (email, phone, or custom ID)

Example:

"bob@example.com"

userIdentifierType
enum<string>
required

Type of user identifier

Available options:
EMAIL,
PHONE,
CUSTOM_ID,
GUEST_ID,
DISCORD,
TWITTER,
TELEGRAM,
FARCASTER

Response

Updated wallet

id
string<uuid>
required

Unique wallet identifier

Example:

"0a1b2c3d-4e5f-6789-abcd-ef0123456789"

type
enum<string>
required

Blockchain network type

Available options:
EVM,
SOLANA,
COSMOS,
STELLAR
Example:

"EVM"

scheme
enum<string>
required

Signature scheme

Available options:
DKLS,
CGGMP,
ED25519
Example:

"DKLS"

status
enum<string>
required

Wallet creation status

Available options:
creating,
ready
createdAt
string<date-time>
required

ISO 8601 timestamp

Example:

"2024-01-15T09:30:00Z"

address
string

Wallet address. Present when status is ready, omitted otherwise.

Example:

"0x742d35Cc6634C0532925a3b844Bc9e7595f..."

publicKey
string

Public key. Present when status is ready, omitted otherwise.

userIdentifier
string

The user identifier associated with this wallet

Example:

"alice@example.com"

userIdentifierType
enum<string>

Type of user identifier

Available options:
EMAIL,
PHONE,
CUSTOM_ID,
GUEST_ID,
DISCORD,
TWITTER,
TELEGRAM,
FARCASTER