Comment on page
Aliases
You can assign unique aliases to Accounts and Identities.
Use Aliases to assign unique codes to Accounts, i.e iBAN number, or to Identities, i.e phone number. You can assign multiple Aliases to a single Account or identity. Each Alias can be assigned only once. Both Account and Identity cannot share the same Alias.
IMPORTANT: Both Accounts and Identities share the same realm-wide alias directory.
To create Alias for account you must add
type: "account"
in your Request.cURL
echo 'create account alias'
curl --location --request POST 'https://api.orangepill.cloud/v1/aliases' \
--header 'x-api-key: AXVubzpwQDU1dzByYM==' \
--header 'Content-Type: application/json'
--data-raw '{
"alias": "IBAN1234567890",
"type": "account",
"account": "daeb815cb436563ab92d694b",
"data": {
"field1": "value1"
},
}'
In response you will get new Alias.
{
"id": "63ab92d694bdaeb815cb4365",
"alias": "IBAN1234567890",
"type": "account",
"account": "daeb815cb436563ab92d694b",
"data": {
"field1": "value1"
},
"owner": "639675ab191e9023f356dfa6",
"created_at": 1672188630240,
"error": null,
"deleted": false
}
To create Alias for account you must add
type: "identity"
in your Request.cURL
echo 'create identity alias'
curl --location --request GET 'https://api.orangepill.cloud/v1/aliases' \
--header 'x-api-key: AXVubzpwQDU1dzByYM==' \
--header 'Content-Type: application/json'
--data-raw '{
"alias": "+11234567890",
"type": "identity",
"identity": "daeb815cb436563ab92d694b",
"data": {
"field1": "value1"
},
}'
In response you will get new alias.
{
"id": "63ab92d694bdaeb815cb4365",
"alias": "+11234567890",
"type": "identity",
"identity": "daeb815cb436563ab92d694b",
"data": {
"field1": "value1"
},
"owner": "639675ab191e9023f356dfa6",
"created_at": 1672188630240,
"error": null,
"deleted": false
}
Last modified 7mo ago