curl --request GET \
--url https://web.edcontrols.com/api/v2/data/tickets/{database}/{ticketId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://web.edcontrols.com/api/v2/data/tickets/{database}/{ticketId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://web.edcontrols.com/api/v2/data/tickets/{database}/{ticketId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://web.edcontrols.com/api/v2/data/tickets/{database}/{ticketId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://web.edcontrols.com/api/v2/data/tickets/{database}/{ticketId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://web.edcontrols.com/api/v2/data/tickets/{database}/{ticketId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://web.edcontrols.com/api/v2/data/tickets/{database}/{ticketId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"_id": "<string>",
"_rev": "<string>",
"project": "<string>",
"groupId": "<string>",
"map": "<string>",
"archived": "<string>",
"tags": [
"<string>"
],
"dates": {
"creationDate": "2023-11-07T05:31:56Z",
"lastModifiedDate": "2023-11-07T05:31:56Z"
},
"content": {
"title": "<string>",
"body": "<string>",
"author": {
"email": "jsmith@example.com",
"type": "<string>"
},
"attachments": [
{}
]
},
"state": {
"state": "completed"
},
"plan": {
"dueDate": "2023-11-07T05:31:56Z"
},
"location": {
"x": 70.37382900555563,
"y": 135.8290570591101,
"zoom": 3,
"latitude": 123,
"longitude": 123,
"rev": "<string>",
"type": "IB.EdBundle.Document.Location"
},
"participants": {
"responsible": {
"email": "jsmith@example.com",
"type": "IB.EdBundle.Document.Person",
"watchChanges": true
},
"consulted": [
{
"email": "jsmith@example.com",
"type": "IB.EdBundle.Document.Person",
"watchChanges": true
}
],
"informed": [
{
"email": "jsmith@example.com",
"type": "IB.EdBundle.Document.Person",
"watchChanges": true
}
]
},
"audits": [
{}
],
"comments": [
{
"note": "Re-inspected: the crack has not moved.",
"author": "inspector@example.com",
"time": "2026-09-09T13:04:12.652Z",
"public": true,
"attachments": [],
"allowedUsers": []
}
],
"customFields": [
{
"id": "3f0c2a1e-5b7d-4c8e-9a10-2d4e6f8a0b1c",
"label": "Element type",
"type": "freetext",
"value": "<string>",
"richOptions": [
{
"id": "O1",
"text": "<p>Fire door with closer</p>",
"type": "textselect",
"image": "<string>"
}
]
}
]
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}Get a ticket
Returns the stored ticket document, as it is in the database: attachments
are listed by file name only (content.attachments, comment
attachments), not as the resolved attachments[] with a fetchable
name that the list endpoints return.
Readable by a superadmin, by everyone who may comment on the ticket
(Accountable, Support, Consulted or Informed on the project, the
ticket’s responsible and assignees, its author), and by anyone Consulted
or Informed on this ticket. Anyone else gets 403. An unknown id is a
404.
curl --request GET \
--url https://web.edcontrols.com/api/v2/data/tickets/{database}/{ticketId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://web.edcontrols.com/api/v2/data/tickets/{database}/{ticketId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://web.edcontrols.com/api/v2/data/tickets/{database}/{ticketId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://web.edcontrols.com/api/v2/data/tickets/{database}/{ticketId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://web.edcontrols.com/api/v2/data/tickets/{database}/{ticketId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://web.edcontrols.com/api/v2/data/tickets/{database}/{ticketId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://web.edcontrols.com/api/v2/data/tickets/{database}/{ticketId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"_id": "<string>",
"_rev": "<string>",
"project": "<string>",
"groupId": "<string>",
"map": "<string>",
"archived": "<string>",
"tags": [
"<string>"
],
"dates": {
"creationDate": "2023-11-07T05:31:56Z",
"lastModifiedDate": "2023-11-07T05:31:56Z"
},
"content": {
"title": "<string>",
"body": "<string>",
"author": {
"email": "jsmith@example.com",
"type": "<string>"
},
"attachments": [
{}
]
},
"state": {
"state": "completed"
},
"plan": {
"dueDate": "2023-11-07T05:31:56Z"
},
"location": {
"x": 70.37382900555563,
"y": 135.8290570591101,
"zoom": 3,
"latitude": 123,
"longitude": 123,
"rev": "<string>",
"type": "IB.EdBundle.Document.Location"
},
"participants": {
"responsible": {
"email": "jsmith@example.com",
"type": "IB.EdBundle.Document.Person",
"watchChanges": true
},
"consulted": [
{
"email": "jsmith@example.com",
"type": "IB.EdBundle.Document.Person",
"watchChanges": true
}
],
"informed": [
{
"email": "jsmith@example.com",
"type": "IB.EdBundle.Document.Person",
"watchChanges": true
}
]
},
"audits": [
{}
],
"comments": [
{
"note": "Re-inspected: the crack has not moved.",
"author": "inspector@example.com",
"time": "2026-09-09T13:04:12.652Z",
"public": true,
"attachments": [],
"allowedUsers": []
}
],
"customFields": [
{
"id": "3f0c2a1e-5b7d-4c8e-9a10-2d4e6f8a0b1c",
"label": "Element type",
"type": "freetext",
"value": "<string>",
"richOptions": [
{
"id": "O1",
"text": "<p>Fire door with closer</p>",
"type": "textselect",
"image": "<string>"
}
]
}
]
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}Authorizations
Path Parameters
Response
The ticket document.
Position on the map. On a drawing, x/y are pixel coordinates in the
zoom-0 tile plane — origin top-left, y downwards, running to
renderinfo.width / 64 and renderinfo.height / 64 of the target map.
latitude/longitude hold the GPS position of the phone the ticket was
made on, written by the mobile apps when location services were on at that
moment, and 0 otherwise — for a GIS, read these, not x/y. On the geo
map the coordinates are geographic. See
Place a ticket on a drawing.
Show child attributes
Show child attributes
The values filled in for the project's custom fields (Expert plan, at
most three per project; defined in the project's customFields).
Each entry repeats the field's definition (id, label, type and,
for a choice field, richOptions) and adds the ticket's value.
Absent, null or an empty array when no field was filled in; a field
that was left empty has no value (or null).
Read-only through this API: POST /tickets/{database} and PATCH
ignore it. See Read custom field values.
Show child attributes
Show child attributes
