> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Freshdesk tickets

> Mount Freshdesk tickets.

Follow the [REST app guide](https://docs.bijection.com/integrations/native-rest.md#mount-and-bind).
Pass the receiver below as `receivers.provider`, bound with `providerEndpoint`
from `@bijectionhq/app-rest` and sealed `Authorization` header auth with prefix `Basic ` and base64 of `<api key>:X`.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
const provider = providerEndpoint(
  "freshdesk/tickets.observations",
  "https://acme.freshdesk.com",
  "/api/v2/tickets",
  auth,
  data,
);
```

Pass the same label to the receiver binder and as the app's `data`. Call `<mount>.source.initialize`.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{ profile: { mode: "provider", provider: "freshdesk/tickets.observations", limit: 25, start: "2026-01-01T00:00:00Z" } }
```

Use the helpdesk's origin and optionally set a fixed RFC 3339 `start` for the `updated_since` filter. The default filter starts just after the Unix epoch. Ticket IDs key live observations. Page numbers come from the next Link and are capped at 300. The next poll restarts at page one. The list is mutable and soft or hard deletes leave prior observations in place.

Up to 100 records and 36 KiB per response. The bundled parser is required. Rows and their next position
commit together. Review failures through `source.health`.

## Write tickets

Follow the [native write app guide](https://docs.bijection.com/integrations/native-rest.md#native-provider-writes). Bind `providerWriter("freshdesk.tickets.create-update-delete", { endpoint: "https://SITE.freshdesk.com", auth }, data)` and pass it as `receivers.writers["freshdesk.tickets.create-update-delete"]`. Seal a write-capable Freshdesk API key using Basic auth. Submit one JSON ticket without attachments. HTTP 201 on create and 200 on update must return the ticket ID. Delete accepts HTTP 204 for the requested ticket and leaves it eligible for the provider’s restore operation.

The writer records its evidence under the app's `data` label. Commands take up to 24 KiB of JSON and carry no read cursor.

[Provider write API](https://developer.freshdesk.com/api/#tickets)

## Additional observations

Bind one protected REST mount per row in the table. Pass the same protected label to the receiver binder and as the app's `data`. Call
`providerEndpoint(mode, origin, path, auth, data)` with the exact
mode and reviewed path. Initialize with
`{ profile: { mode: "provider", provider: mode, limit: 25 } }`, adding the
resource selectors below where required.

| Mode | Receiver path | Record key | Position |
| - | - | - | - |
| `freshdesk.contacts.observations` | `/api/v2/contacts` | Contact ID | Consecutive Link page positions through page 300 |
| `freshdesk.companies.observations` | `/api/v2/companies` | Company ID | Consecutive Link page positions through page 300 |
| `freshdesk.ticket.conversations.observations` | `/api/v2/tickets/TICKET/conversations` | Conversation ID | Consecutive Link page positions through page 300 |
| `freshdesk.folder.articles.observations` | `/api/v2/solutions/folders/FOLDER/articles` | Article ID | Consecutive Link page positions through page 300 |

Each response admits at most 100 rows and 36 KiB. Oversized or malformed
pages preserve the last committed position. A terminal page restarts the
walk at the next poll. Rows missing from later responses stay published.

Use the same tenant origin and Basic credential as the ticket observation.
Use the numeric ticket or solution folder ID as `selection` when the
installed path contains that ID.

[Freshdesk API](https://developer.freshdesk.com/api/)

## Additional writes

Follow the [native write app guide](https://docs.bijection.com/integrations/native-rest.md#native-provider-writes).
Pass the reviewed HTTPS endpoint, the credential's `auth` and any listed `scope` array to `providerWriter(mode, { endpoint, auth, scope }, data)`, and pass the writer as `receivers.writers[mode]`. Pass the receiver to the app under the same protected `data` label. Use a
distinct exact command key for each command. Writes accept up to 24 KiB
of JSON and carry no read cursor. Each task sends at most once.

| Mode | Binder | Scope and action |
| - | - | - |
| `freshdesk.contacts.create-update` | `providerWriter` | Empty scope. Create or edit one contact by ID. |
| `freshdesk.companies.create-update` | `providerWriter` | Empty scope. Create or edit one company by ID. |
| `freshdesk.ticket.notes.create` | `providerWriter` | Scope is the ticket ID. Create a note and retain its conversation ID. |
| `freshdesk.folder.articles.create-update` | `providerWriter` | Scope is the solution folder ID for create. Update by article ID. |

Use a sealed Freshdesk API key as Basic authorization. Send a single
JSON record. Note creation accepts JSON only. Existing feed rows follow
the observation semantics above.

[Freshdesk API](https://developer.freshdesk.com/api/)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.