CorefinityCorefinityDocs
Open the Control PanelControl Panel
Support · 1 of 15

Get the choices for a new ticket

Answers what the New Ticket form offers you: the departments, the priorities, the websites a ticket can be about and, once you give websites, their environments. An agency chooses a company first: until company_id is given, websites is null, and websites given without it are refused.

GET/api/support/ticket-options

Query parameters

company_idinteger

The company the ticket would be for, when the form asks. At least 1.

website_idsstring

The websites whose environments to list: up to 50 ids, comma-separated.

website_idinteger

One website, in place of website_ids. At least 1.

Returns

200 The choices.

Fields of the 200 answer
chooses_companybooleanRequired

Whether the form asks which company the ticket is for, as it does for an agency.

companiesarray of objects or nullRequired

Those companies. Null when the form does not ask.

Fields of each item
idintegerRequired

At least 1.

namestringRequired
company_idinteger or nullRequired

The company you gave. At least 1.

default_prioritystringRequired
emergencyhighmediumlow
departmentsarray of objectsRequired
Fields of each item
idintegerRequired

At least 1.

namestringRequired
emergency_noticestring or nullRequired

What the form tells you when you choose Emergency. Null when nothing is set.

environment_groupsarray of objects or nullRequired

The same environments under their website.

Fields of each item
environmentsarray of objectsRequired
Fields of each item
idintegerRequired

At least 1.

namestringRequired
website_idintegerRequired

At least 1.

website_namestringRequired
environmentsarray of objects or nullRequired

Every environment of those websites. Null until you give a website.

Fields of each item
idintegerRequired

At least 1.

namestringRequired
website_idintegerRequired

At least 1.

prioritiesarray of objectsRequired
Fields of each item
labelstringRequired
valuestringRequired
emergencyhighmediumlow
website_idinteger or nullRequired

The first of the websites you gave. At least 1.

website_idsarray of integersRequired

The websites you gave.

websitesarray of objects or nullRequired

The websites a ticket can be about. Null when the form asks for a company and company_id was not given.

Fields of each item
idintegerRequired

At least 1.

namestringRequired

If it is refused

StatusReasonWhat to do
401noneSend a valid token as Authorization: Bearer <token>.
403scope_requiredUse a token with the scope named in scope.
422invalidFix the field named in field; errors says why.
429rate_limitedWait for the seconds in Retry-After.

Reasons are listed by name in Errors and refusals.

The same task elsewhere

curl https://manage.corefinity.com/api/support/ticket-options \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
{
  "chooses_company": false,
  "companies": null,
  "company_id": null,
  "default_priority": "medium",
  "departments": [
    {
      "id": 21,
      "name": "Support"
    },
    {
      "id": 22,
      "name": "Billing"
    }
  ],
  "emergency_notice": null,
  "environment_groups": [
    {
      "environments": [
        {
          "id": 1311,
          "name": "Production"
        },
        {
          "id": 1312,
          "name": "Staging"
        }
      ],
      "website_id": 1310,
      "website_name": "Harbour & Finch trade"
    }
  ],
  "environments": [
    {
      "id": 1311,
      "name": "Production",
      "website_id": 1310
    },
    {
      "id": 1312,
      "name": "Staging",
      "website_id": 1310
    }
  ],
  "priorities": [
    {
      "label": "Emergency",
      "value": "emergency"
    },
    {
      "label": "High",
      "value": "high"
    },
    {
      "label": "Medium",
      "value": "medium"
    },
    {
      "label": "Low",
      "value": "low"
    }
  ],
  "website_id": 1310,
  "website_ids": [
    1310
  ],
  "websites": [
    {
      "id": 1310,
      "name": "Harbour & Finch trade"
    },
    {
      "id": 1320,
      "name": "Harbour & Finch outlet"
    }
  ]
}
Try it
Held in this tab's memory only. Never stored or sent to us.

Use a token with only the read scope. How to make one

Was this helpful?
Open in ClaudeOpen in ChatGPT