# `album.alias.check`

<span class="badge">bearer</span>

**Check public address availability**

Case-insensitive global alias check without exposing its owner or publication state. Own current aliases are taken; own previous/released aliases are available. Limited to 30 checks per minute per authenticated user.

## Parameters

Passed by name in the `params` object.

| Name | Type | Required | Description |
|---|---|---|---|
| `alias` | string | yes |  |

## Result

Returns `aliasCheckResult`:

| Field | Type | Description |
|---|---|---|
| `normalized *` | string |  |
| `preview_url *` | string |  |
| `reason` | string |  |
| `status *` | string (enum) |  |

## Errors

| Code | Message | When |
|---|---|---|
| `2002` | `validation_failed` | Malformed request; see error.data. |
| `4002` | `rate_limited` | Too many requests; wait before retrying. |

See the [error reference](/docs/errors) for the full catalog, including the authentication codes.

## Example

Request:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "album.alias.check",
  "params": {
    "alias": "Coast-2026"
  }
}
```

Response:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "normalized": "coast-2026",
    "status": "available",
    "preview_url": "https://app.example.com/a/coast-2026"
  }
}
```

**curl**

```bash
curl -s https://peinture.gumeniuk.com/rpc \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"album.alias.check","params":{"alias":"Coast-2026"}}'
```

**JavaScript**

```js
const res = await fetch("https://peinture.gumeniuk.com/rpc", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": `Bearer ${token}`,
  },
  body: JSON.stringify({
    jsonrpc: "2.0", id: 1, method: "album.alias.check", params: {"alias":"Coast-2026"},
  }),
});
const { result, error } = await res.json();
```

**Go**

```go
body := []byte(`{"jsonrpc":"2.0","id":1,"method":"album.alias.check","params":{"alias":"Coast-2026"}}`)
req, _ := http.NewRequest("POST", "https://peinture.gumeniuk.com/rpc", bytes.NewReader(body))
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer "+token)
resp, err := http.DefaultClient.Do(req)
```

