> For the complete documentation index, see [llms.txt](https://docs.sedona.fun/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sedona.fun/core-client.md).

# Core client reference

[← Back to dashboard](https://www.sedona.fun/dashboard/api-keys)

`createClient(provider, options)` returns one non-generic client. Sessions open lazily on the first operation and are single-flight. Call `close()` when the client is no longer needed.

## Resources

| Resource       | Purpose                                                |
| -------------- | ------------------------------------------------------ |
| `connection`   | provider readiness and limitations                     |
| `capabilities` | separate provider evidence from adapter implementation |
| `lines`        | list and inspect sending lines                         |
| `addresses`    | advisory iMessage reachability                         |
| `chats`        | create, list, and inspect conversations                |
| `messages`     | send, list, edit, and unsend                           |
| `reactions`    | add and remove reactions                               |
| `typing`       | send typing state                                      |
| `receipts`     | mark a specific inbound message read                   |
| `contactCards` | share a contact card                                   |
| `events`       | list or stream provider events                         |
| `webhooks`     | verify, parse, and administer subscriptions            |
| `raw`          | authenticated provider escape hatch                    |
| `extensions`   | descriptor-declared provider-specific operations       |

The core client also defines generic resources for groups, attachments, backgrounds, locations, and polls. Their presence on the client does not mean a provider implements them. Query `client.capabilities` or handle `capability_unavailable`.

## Client options

| Option            | Meaning                                               |
| ----------------- | ----------------------------------------------------- |
| `transportPolicy` | default send policy; use `require_imessage` for Fleet |
| `timeoutMs`       | default HTTP transport budget                         |
| `readRetry`       | bounded retry policy for declared transient reads     |
| `telemetry`       | local operation event hook                            |

Per-call options include `signal` and `timeoutMs`. Send options additionally include line selection, idempotency, effects, replies, transport policy, and provider options.

Read [Fleet provider reference](/core-client/fleet-provider.md) for the implemented subset.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.sedona.fun/core-client.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
