POST
https://api.cryptohopper.com/v1/social/alias
Normalizes the alias you send (lowercase, spaces and dots become hyphens, other characters are removed) and tells you whether that alias is still free for your social profile.
OAuth scope:
manage About scopes
The returned alias is the normalized form. Aliases of 2 characters or less, longer than 120 characters or fully numeric are rejected with a 400 error. An alias you already own is reported as available.
Example request
curl -X POST "https://api.cryptohopper.com/v1/social/alias" \
-H "access-token: YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"alias":"trader-jane"}'
const response = await fetch('https://api.cryptohopper.com/v1/social/alias', {
method: 'POST',
headers: {
"access-token": "YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"alias": "trader-jane"
})
});
const data = await response.json();
import requests
response = requests.post(
"https://api.cryptohopper.com/v1/social/alias",
headers={
"access-token": "YOUR_ACCESS_TOKEN"
},
json={
"alias": "trader-jane"
},
)
data = response.json()
$ch = curl_init('https://api.cryptohopper.com/v1/social/alias');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'access-token: YOUR_ACCESS_TOKEN',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'alias' => 'trader-jane',
]),
]);
$data = json_decode(curl_exec($ch), true);
Parameters
Headers
| Name | Type | Required | Description |
|---|---|---|---|
access-token |
string | Required | The OAuth access token of the user. |
Response
{
"data": {
"available": 1,
"alias": "trader-jane",
"message": "Alias is available."
}
}