GET
/
unified
/
ticketing
/
tickets
/
{id}
curl --request GET \
  --url https://api.stackone.com/unified/ticketing/tickets/{id} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'x-account-id: <x-account-id>'
{
  "data": {
    "unified_custom_fields": {
      "my_project_custom_field_1": "REF-1236",
      "my_project_custom_field_2": "some other value"
    },
    "id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
    "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
    "title": "System outage in production environment",
    "creator_id": "user-001",
    "reporters": [
      "user-001",
      "user-002"
    ],
    "assignees": [
      "user-001",
      "user-002"
    ],
    "content": [
      {
        "plain": "This is some content",
        "html": "<p>This is some content</p>"
      }
    ],
    "parent_id": "ticket-002",
    "priority": {
      "id": "001",
      "value": "medium",
      "source_value": "Normal"
    },
    "tags": [
      "tag-001",
      "tag-002"
    ],
    "collections": [
      "collection-001",
      "collection-002"
    ],
    "ticket_number": "ticket-001",
    "type": {
      "id": "001",
      "name": "Task",
      "collection_id": "collection-001"
    },
    "closed_at": "2021-01-01T01:01:01.000Z",
    "ticket_url": "https://help.company.com/tickets/SUP-5689",
    "status": {
      "id": "001",
      "type": {
        "value": "to-do",
        "source_value": "New"
      },
      "name": "Backlog"
    },
    "organization": {
      "id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
      "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
      "domain": "company.com",
      "name": "Company"
    },
    "created_at": "2021-01-01T01:01:01.000Z",
    "updated_at": "2021-01-01T01:01:01.000Z"
  },
  "raw": [
    {
      "method": "<string>",
      "url": "<string>",
      "body": "<string>",
      "response": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Headers

x-account-id
string
required

The account identifier

Path Parameters

id
string
required

Query Parameters

raw
boolean | null

Indicates that the raw request result should be returned in addition to the mapped result (default value is false)

proxy
object | null

Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key

fields
string | null

The comma separated list of fields that will be returned in the response (if empty, all fields are returned)

Example:

"id,remote_id,type,ticket_number,title,creator_id,remote_creator_id,reporters,assignees,content,parent_id,remote_parent_id,closed_at,ticket_url,status,priority,tags,collections,organization,created_at,updated_at"

Response

200
application/json

The ticket with the given identifier was retrieved.

The response is of type object.