freshdesk Email Configs API

Manage email mailbox configurations for the helpdesk.

OpenAPI Specification

freshdesk-email-configs-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Freshdesk REST Agents Email Configs API
  description: The Freshdesk REST API (v2) provides programmatic access to helpdesk data and operations within Freshdesk, a customer support platform by Freshworks. It exposes endpoints for managing tickets, contacts, companies, agents, groups, conversations, products, email configurations, SLA policies, business hours, time entries, satisfaction ratings, solution categories, solution folders, solution articles, and more. The API uses JSON for request and response payloads, supports API key-based authentication, and follows RESTful conventions for CRUD operations.
  version: '2.0'
  contact:
    name: Freshdesk Support
    url: https://support.freshdesk.com/
  termsOfService: https://www.freshworks.com/terms/
servers:
- url: https://{domain}.freshdesk.com/api/v2
  description: Freshdesk Production Server
  variables:
    domain:
      default: yourdomain
      description: Your Freshdesk subdomain, e.g. if your helpdesk URL is acme.freshdesk.com, use acme.
security:
- basicAuth: []
tags:
- name: Email Configs
  description: Manage email mailbox configurations for the helpdesk.
paths:
  /email_configs:
    get:
      operationId: listEmailConfigs
      summary: List all email configurations
      description: Retrieves a list of all email mailbox configurations.
      tags:
      - Email Configs
      responses:
        '200':
          description: Successfully retrieved email configurations.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/EmailConfig'
        '401':
          $ref: '#/components/responses/Unauthorized'
  /email_configs/{email_config_id}:
    get:
      operationId: getEmailConfig
      summary: View an email configuration
      description: Retrieves the details of a specific email configuration by ID.
      tags:
      - Email Configs
      parameters:
      - $ref: '#/components/parameters/emailConfigId'
      responses:
        '200':
          description: Successfully retrieved email configuration.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailConfig'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  responses:
    Unauthorized:
      description: Authentication failed or credentials were not provided.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: The requested resource was not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  parameters:
    emailConfigId:
      name: email_config_id
      in: path
      required: true
      description: Unique identifier of the email configuration.
      schema:
        type: integer
        format: int64
  schemas:
    EmailConfig:
      type: object
      properties:
        id:
          type: integer
          format: int64
          description: Unique identifier of the email configuration.
        name:
          type: string
          description: Display name of the email configuration.
        reply_email:
          type: string
          format: email
          description: Reply-to email address.
        support_email:
          type: string
          format: email
          description: Support email address.
        product_id:
          type: integer
          format: int64
          nullable: true
          description: ID of the associated product.
        primary_role:
          type: boolean
          description: Whether this is the primary email configuration.
        to_email:
          type: string
          format: email
          description: Incoming email address.
        active:
          type: boolean
          description: Whether the email configuration is active.
        created_at:
          type: string
          format: date-time
          description: Timestamp when the email configuration was created.
        updated_at:
          type: string
          format: date-time
          description: Timestamp when the email configuration was last updated.
    Error:
      type: object
      properties:
        description:
          type: string
          description: Human-readable error description.
        errors:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                description: Field that caused the error.
              message:
                type: string
                description: Error message for the field.
              code:
                type: string
                description: Error code.
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: Freshdesk uses API key-based authentication. Pass your API key as the username with any string (e.g. X) as the password using HTTP Basic Authentication.
externalDocs:
  description: Freshdesk API Documentation
  url: https://developers.freshdesk.com/api/