# Capability

## Check iMessage capability

`capability.check_i_message(CapabilityCheckiMessageParams**kwargs)  -> HandleCheckResponse`

**post** `/v3/capability/check_imessage`

Check whether a recipient address (phone number or email) is reachable via iMessage.

### Parameters

- `address: str`

  The recipient phone number or email address to check

- `from_: Optional[str]`

  Optional sender phone number. If omitted, an available phone from your pool is used automatically.

### Returns

- `class HandleCheckResponse: …`

  - `address: str`

    The recipient address that was checked

  - `available: bool`

    Whether the recipient supports the checked messaging service

### Example

```python
import os
from linq import LinqAPIV3

client = LinqAPIV3(
    api_key=os.environ.get("LINQ_API_V3_API_KEY"),  # This is the default and can be omitted
)
handle_check_response = client.capability.check_i_message(
    address="+15551234567",
)
print(handle_check_response.address)
```

#### Response

```json
{
  "address": "+15551234567",
  "available": true
}
```

## Check RCS capability

`capability.check_RCS(CapabilityCheckRCSParams**kwargs)  -> HandleCheckResponse`

**post** `/v3/capability/check_rcs`

Check whether a recipient address (phone number) supports RCS messaging.

### Parameters

- `address: str`

  The recipient phone number or email address to check

- `from_: Optional[str]`

  Optional sender phone number. If omitted, an available phone from your pool is used automatically.

### Returns

- `class HandleCheckResponse: …`

  - `address: str`

    The recipient address that was checked

  - `available: bool`

    Whether the recipient supports the checked messaging service

### Example

```python
import os
from linq import LinqAPIV3

client = LinqAPIV3(
    api_key=os.environ.get("LINQ_API_V3_API_KEY"),  # This is the default and can be omitted
)
handle_check_response = client.capability.check_RCS(
    address="+15551234567",
)
print(handle_check_response.address)
```

#### Response

```json
{
  "address": "+15551234567",
  "available": true
}
```

## Domain Types

### Handle Check

- `class HandleCheck: …`

  - `address: str`

    The recipient phone number or email address to check

  - `from_: Optional[str]`

    Optional sender phone number. If omitted, an available phone from your pool is used automatically.

### Handle Check Response

- `class HandleCheckResponse: …`

  - `address: str`

    The recipient address that was checked

  - `available: bool`

    Whether the recipient supports the checked messaging service
