# initdesk API > initdesk public API docs and reference - [initdesk API](https://developers.initdesk.com/endpoints.md): Connect your tools to initdesk with the public API. Start with authentication, organization scope, and pagination. - [Authentication and limits](https://developers.initdesk.com/authentication.md): Create an integration token, authenticate requests, and handle API rate limits. - [Entities and relationships](https://developers.initdesk.com/main-entities.md): Understand how organizations, customers, tickets, messages, and Help Center content fit together. - [List organizations](https://developers.initdesk.com/api-reference/organizations/list-organizations.md): List organizations the authenticated user belongs to. Use the organization ID in subsequent API paths. Filter by name with `search`. - [Retrieve organization](https://developers.initdesk.com/api-reference/organizations/retrieve-organization.md): Return the organization. A numeric value selects it by id. Any other value selects it by public id and ignores letter case. - [List business hours exceptions](https://developers.initdesk.com/api-reference/business-hours/list-business-hours-exceptions.md): Paginated date exceptions for the organization's schedule. Optional from and to limit the list to that inclusive date range. Any member or API token can read. Owners, admins and API tokens can create, change or delete. - [Create business hours exception](https://developers.initdesk.com/api-reference/business-hours/create-business-hours-exception.md): Add one date. Leave opens_at and closes_at empty for a closed day, or set both for one custom range (overnight allowed). Times are HH:MM or HH:MM:SS, not the weekly_hours weekday map. Save business hours before adding exceptions. Any member or API token can read. Owners, admins and API tokens can cr… - [Retrieve business hours exception](https://developers.initdesk.com/api-reference/business-hours/retrieve-business-hours-exception.md): Return one date exception. Any member or API token can read. Owners, admins and API tokens can create, change or delete. - [Replace business hours exception](https://developers.initdesk.com/api-reference/business-hours/replace-business-hours-exception.md): Replace one date exception. Any member or API token can read. Owners, admins and API tokens can create, change or delete. - [Delete business hours exception](https://developers.initdesk.com/api-reference/business-hours/delete-business-hours-exception.md): Delete one date exception. Any member or API token can read. Owners, admins and API tokens can create, change or delete. - [Update business hours exception](https://developers.initdesk.com/api-reference/business-hours/update-business-hours-exception.md): Update selected fields on one date exception. Any member or API token can read. Owners, admins and API tokens can create, change or delete. - [Get business hours](https://developers.initdesk.com/api-reference/business-hours/get-business-hours.md): One schedule for the organization. timezone is an IANA name such as America/Sao_Paulo. weekly_hours is an object whose keys are mon, tue, wed, thu, fri, sat, and sun. Each value is null when that day is closed, or one range {"opens_at": "09:00", "closes_at": "18:00"}. Times are 24-hour HH:MM with no… - [Replace business hours](https://developers.initdesk.com/api-reference/business-hours/replace-business-hours.md): One schedule for the organization. timezone is an IANA name such as America/Sao_Paulo. weekly_hours is an object whose keys are mon, tue, wed, thu, fri, sat, and sun. Each value is null when that day is closed, or one range {"opens_at": "09:00", "closes_at": "18:00"}. Times are 24-hour HH:MM with no… - [Delete business hours](https://developers.initdesk.com/api-reference/business-hours/delete-business-hours.md): Remove the schedule. The organization is open 24/7 afterward. - [List companies](https://developers.initdesk.com/api-reference/companies/list-companies.md): Return companies for the organization. Filter by name with `search` (accent-insensitive) or by an exact email domain with `domain`. Each company includes `member_count`. - [Create company](https://developers.initdesk.com/api-reference/companies/create-company.md): Create a company. `default_assignee_id` must be an active organization member. Inbox access is checked later, when a new ticket is created. - [Retrieve company](https://developers.initdesk.com/api-reference/companies/retrieve-company.md): Return a company by ID. - [Update company](https://developers.initdesk.com/api-reference/companies/update-company.md): Replace company fields (full update). - [Delete company](https://developers.initdesk.com/api-reference/companies/delete-company.md): Delete the company. Members no longer belong to a company. Tickets stay on the person and keep their assignee. - [Partially update company](https://developers.initdesk.com/api-reference/companies/partially-update-company.md): Update selected company fields. - [Attach company members](https://developers.initdesk.com/api-reference/companies/attach-company-members.md): Attach customers who have no company. Customers who already belong to a company are skipped and are not moved. IDs that are missing or belong to another organization are `not_found`. The response accounts for every requested ID exactly once. No customer objects are returned. - [List custom preset filters](https://developers.initdesk.com/api-reference/custom-preset-filters/list-custom-preset-filters.md): Return saved ticket search filters visible to the caller. Integration tokens receive organization-shared filters only. - [Retrieve custom preset filter](https://developers.initdesk.com/api-reference/custom-preset-filters/retrieve-custom-preset-filter.md): Return a saved ticket search filter by ID. Integration tokens may only retrieve organization-shared filters. - [List customers](https://developers.initdesk.com/api-reference/customers/list-customers.md): Return customers for the organization. Filter members of a company with `company=`, or ungrouped people with `company=ungrouped`. - [Create customer](https://developers.initdesk.com/api-reference/customers/create-customer.md): Create a customer in the organization. - [Retrieve customer](https://developers.initdesk.com/api-reference/customers/retrieve-customer.md): Return a customer by ID. - [Update customer](https://developers.initdesk.com/api-reference/customers/update-customer.md): Replace customer fields (full update). - [Partial update customer](https://developers.initdesk.com/api-reference/customers/partial-update-customer.md): Update selected customer fields. Set `company_id` to group the person, or `null` to ungroup. This write allows moving someone who already has a company. Changing `company_id` clears `is_company_manager`. Setting `is_company_manager` true requires a current company. - [List inboxes](https://developers.initdesk.com/api-reference/inboxes/list-inboxes.md): Return all inboxes for the organization. On ticket create, inbox_id is optional: omit to route to the default inbox (is_default: true), or provide an inbox ID from this list to target a specific mailbox. The email channel's address is the branded support address when that address is enabled and read… - [Retrieve inbox](https://developers.initdesk.com/api-reference/inboxes/retrieve-inbox.md): Return inbox details, including email prefix and whether it is the default inbox for the organization. The email channel's address is the branded support address when that address is enabled and ready, and the hosted initdesk address otherwise. - [Create pending attachment](https://developers.initdesk.com/api-reference/tickets/create-pending-attachment.md): Multipart upload (`file_upload`) before ticket creation. Pass the returned `id` in ticket create `attachment_ids` to claim the file. Rejects sensitive file types with HTTP 400. See the Tickets tag for the full upload flow. - [Search tickets](https://developers.initdesk.com/api-reference/tickets/search-tickets.md): Search ticket subjects, messages, and customer details. Use `preset_filter` to apply one of the predefined filter sets. Use `custom_preset_filter` (UUID) to apply a saved filter. Filter by tag with `tags` (repeat the parameter to match any tag). Filter by assignee with `assignee` (organization user… - [List tickets](https://developers.initdesk.com/api-reference/tickets/list-tickets.md): Return tickets for the organization. By default only non-spam tickets are included. Pass `is_spam=true` to list spam tickets. Filter by customer with `customer_id`. Filter by how the ticket was opened with `origin`. `origin__in` is a deprecated alias of `origin`. `support_portal` is shown as Help Ce… - [Create ticket](https://developers.initdesk.com/api-reference/tickets/create-ticket.md): Create a ticket. Optional `inbox_id` targets a specific inbox; when omitted, the ticket routes to the organization's default inbox (is_default: true). Optional `assignee_id` sets the assignee when you create the ticket. When omitted, the customer's company default assignee is used if that associate… - [Retrieve ticket](https://developers.initdesk.com/api-reference/tickets/retrieve-ticket.md): Return full ticket details for the given ticket ID. To retrieve its messages (replies and private notes), use the `messages` endpoint. - [Unassign ticket](https://developers.initdesk.com/api-reference/tickets/unassign-ticket.md): Removes the current assignee from the ticket (sets assignee to null) and returns updated ticket details. - [List ticket statuses](https://developers.initdesk.com/api-reference/tickets/list-ticket-statuses.md): Return all ticket status values with human-readable labels (enum value and description per entry). - [Create ticket attachment](https://developers.initdesk.com/api-reference/tickets/create-ticket-attachment.md): Multipart upload (`file_upload`) for an existing ticket. Pass the returned `id` in message create `attachment_ids` to claim the file. Rejects sensitive file types with HTTP 400. See the Tickets tag for the full upload flow. - [Download ticket attachment](https://developers.initdesk.com/api-reference/tickets/download-ticket-attachment.md): Redirects to the file URL (HTTP 302). - [List ticket messages](https://developers.initdesk.com/api-reference/tickets/list-ticket-messages.md): Return messages for a ticket. - [Reply or create internal note](https://developers.initdesk.com/api-reference/tickets/reply-or-create-internal-note.md): Add a reply or internal note to the ticket. For customer-visible replies, optional `external_recipient_emails` sets CC recipients for that message; omit or null to reuse CC recipients from the previous customer-visible message or from ticket creation. Internal notes ignore this field. Optional `atta… - [Retrieve ticket message raw content](https://developers.initdesk.com/api-reference/tickets/retrieve-ticket-message-raw-content.md): Return the full original text of an inbound message when it differs from the message shown on the timeline. Returns 404 when that text is not available. - [Get portal settings](https://developers.initdesk.com/api-reference/help-center/get-portal-settings.md): Return the organization's support portal settings. Creates a portal record if one does not exist yet. - [Replace portal settings](https://developers.initdesk.com/api-reference/help-center/replace-portal-settings.md): Replace all portal settings for the organization (full update). - [Update portal settings](https://developers.initdesk.com/api-reference/help-center/update-portal-settings.md): Partially update portal settings for the organization. - [List articles](https://developers.initdesk.com/api-reference/help-center/list-articles.md): Return knowledge base articles for the organization. Filter by collection or publication status with query parameters. - [Create article](https://developers.initdesk.com/api-reference/help-center/create-article.md): Create a knowledge base article. Draft content may be empty or omitted; published and archived articles require non-whitespace content. - [Retrieve article](https://developers.initdesk.com/api-reference/help-center/retrieve-article.md): Return an article by ID or slug. - [Update article](https://developers.initdesk.com/api-reference/help-center/update-article.md): Replace article fields (full update). Address the article by ID or slug. Omitted content is preserved. Empty content is allowed only for drafts. - [Delete article](https://developers.initdesk.com/api-reference/help-center/delete-article.md): Delete an article. Address the article by ID or slug. - [Partially update article](https://developers.initdesk.com/api-reference/help-center/partially-update-article.md): Update selected article fields. Address the article by ID or slug. Omitted content is preserved. The final status and content must allow empty content only for drafts. - [Get portal favicon URL](https://developers.initdesk.com/api-reference/help-center/get-portal-favicon-url.md): Retrieve the portal favicon URL for the given size (pixels). - [Get portal logo URL](https://developers.initdesk.com/api-reference/help-center/get-portal-logo-url.md): Retrieve the portal logo URL for the given size. Use a number for a square image (e.g. 128), or a number with 'h'/'w' suffix to constrain height or width while preserving aspect ratio (e.g. 100h or 100w). - [Search knowledge base articles](https://developers.initdesk.com/api-reference/help-center/search-knowledge-base-articles.md): Search articles by title, excerpt, and markdown content. Results are limited by the limit query parameter. - [List collections](https://developers.initdesk.com/api-reference/help-center/list-collections.md): Return knowledge base collections for the organization's portal. - [Create collection](https://developers.initdesk.com/api-reference/help-center/create-collection.md): Create a knowledge base collection. - [Retrieve collection](https://developers.initdesk.com/api-reference/help-center/retrieve-collection.md): Return a collection by ID. - [Update collection](https://developers.initdesk.com/api-reference/help-center/update-collection.md): Replace collection fields (full update). - [Delete collection](https://developers.initdesk.com/api-reference/help-center/delete-collection.md): Delete a collection. - [Partially update collection](https://developers.initdesk.com/api-reference/help-center/partially-update-collection.md): Update selected collection fields. - [List collection tree](https://developers.initdesk.com/api-reference/help-center/list-collection-tree.md): Return collections as a nested tree. Use include_articles to embed articles per collection node. - [List organization tags](https://developers.initdesk.com/api-reference/tags/list-organization-tags.md): Return all tags defined for the organization, including id, name, color, and instructions. - [Retrieve organization tag](https://developers.initdesk.com/api-reference/tags/retrieve-organization-tag.md): Return a single organization tag by ID, including id, name, color, and instructions. ## OpenAPI Specs - [schema](https://api.initdesk.com/schema.yaml) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.