Search API documentation

Type to search the API docs.

Create Tasks from Forms, Tickets or Other Apps

Turn a form, ticket or plan item from another app (for example Google Forms, Zendesk or Jira) into an Event Task.

Example use case

Someone submits a booth request in another app. Your integration turns it into a Task for the right Event.

What you'll end up with

A new Event Task and its ID, with an optional Task Section and Assignee.

Before you start

Have a workspace API key and the ID of an Event where you can add Tasks. Replace the example IDs with your own.

Good to know

Save one Idempotency-Key with the exact request for each Task you intend to create.

At a glance

Time to try

About 10 minutes

Effect on your data

Creates records

Endpoints

4

Each successful run creates an Event Task. If you choose an Assignee, ExhibitDay emails them, as on the website, if their email preferences allow it.

How it works

  1. Confirm the Event ID and read its Task Sections so you can check a section ID if you use one.
  2. If you supply an Assignee, confirm that the user can be assigned Tasks.
  3. Create the Event Task and print its ID and name. Keep the ID with the original form or ticket.

Check the details and create the Task

These steps use an Event that already exists. Step 3 applies only if you supply an Assignee.

Step 1: Confirm the Event ID

Filter the Events list by the ID you intend to use so the Task goes to the right Event.

curl -X GET "https://api.exhibitday.com/v1/events?event_id=12345&%24return_event_lites=true" -H "Authorization: Bearer YOUR_API_KEY"

Example response (shortened)

{
      "list_data": [{ "id": 12345, "name": "Sample Event" }],
      "has_more": false
    }

Check: The intended ID appears in list_data. The complete program checks the supplied ID across returned pages.

Step 2: Read the Event and its Task Sections

Read the confirmed Event so you can choose a Task Section that belongs to it.

curl -X GET "https://api.exhibitday.com/v1/events/info?id=12345" -H "Authorization: Bearer YOUR_API_KEY"

Example response (shortened)

{
      "id": 12345,
      "task_sections": [{ "id": 67890, "name": "Booth setup" }]
    }

Check: The Event ID matches. If you set EXHIBITDAY_TASK_SECTION_ID, that ID must appear in task_sections.

Step 3: Confirm the Assignee, if supplied

Filter the users and Resources list to people who can be assigned Tasks so you can confirm the optional Assignee. Tasks cannot be assigned to Resources. To look someone up by name, also send filter_by_name_contains_text, such as Sam Rivera; the search ignores letter case, accents and the order of first and last name.

curl -X GET "https://api.exhibitday.com/v1/references/users_and_resources?filter_by_can_have_tasks_assigned=true" -H "Authorization: Bearer YOUR_API_KEY"

Example response (shortened)

{
      "list_data": [{ "id": "4ee58d3b-ae3a-4b9b-a269-048dc191d2a9", "display_name": "Sam Rivera", "can_have_tasks_assigned": true }]
    }

Check: The Assignee's ID appears in list_data. The filter excludes Resources. The complete program skips this request when EXHIBITDAY_ASSIGNEE_ID is unset.

Step 4: Create the Task

Send the Event ID and Task name with your unique key so a retry can reuse the original result.

curl -X POST "https://api.exhibitday.com/v1/tasks" -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -H "Idempotency-Key: YOUR_UNIQUE_KEY" -d "{\"event_id\":12345,\"name\":\"Order booth carpet\"}"

Example response (shortened)

{
  "id": 23456,
  "name": "Order booth carpet"
}

Check: Save the returned id with the source form or ticket. The complete program prints the Task's ID and name.

Try it

Before running the example

VariableWhat to put in itRequired?
EXHIBITDAY_API_KEYYour workspace API key.Yes
EXHIBITDAY_EVENT_IDThe Event ID where you want to add a Task.Yes
EXHIBITDAY_TASK_NAMEYour Task name. Defaults to Order booth carpet.No
EXHIBITDAY_TASK_SECTION_IDA Task Section ID from this Event.No
EXHIBITDAY_ASSIGNEE_IDThe ID of a user who can be assigned Tasks (see Step 3). Leave unset for an unassigned Task.No

Bash

export EXHIBITDAY_API_KEY='YOUR_API_KEY'
export EXHIBITDAY_EVENT_ID='12345'

PowerShell

$env:EXHIBITDAY_API_KEY = 'YOUR_API_KEY'
$env:EXHIBITDAY_EVENT_ID = '12345'

Then copy the complete example program below in your language and run it.

Complete example program

Code Samples
#!/usr/bin/env bash
# Requires bash, curl and Python 3. Set EXHIBITDAY_API_KEY.
python3 - <<'EXHIBITDAY_PY'
# Python 3; standard library only. Set EXHIBITDAY_API_KEY before running.
import csv
import datetime
import http.client
import json
import os
import re
import time
import urllib.error
import urllib.parse
import urllib.request
import uuid
from pathlib import Path

BASE = "https://api.exhibitday.com/v1"
SPEC = json.loads("{\"preserveNumbers\":false,\"requests\":{\"events\":{\"method\":\"GET\",\"path\":\"/events\"},\"event\":{\"method\":\"GET\",\"path\":\"/events/info\"},\"assignees\":{\"method\":\"GET\",\"path\":\"/references/users_and_resources\"},\"createTask\":{\"method\":\"POST\",\"path\":\"/tasks\"}}}")
API_KEY = os.environ["EXHIBITDAY_API_KEY"]
if not API_KEY.strip():
    raise RuntimeError("Set EXHIBITDAY_API_KEY")

def decode_json(text):
    if SPEC["preserveNumbers"]:
        # Quote JSON NUMBER tokens, never text inside a JSON string, to keep CSV decimals exact.
        text = re.sub(r'"(?:\\.|[^"\\])*"|-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?',
                      lambda m: m[0] if m[0].startswith('"') else json.dumps(m[0]), text)
    return json.loads(text)

# This terminal version uses curl for HTTP and Python's standard library for JSON/CSV.
import subprocess
import tempfile

def transport(method, url, headers, data):
    with tempfile.TemporaryDirectory(prefix="exhibitday-guide-") as directory:
        folder = Path(directory)
        # curl may leave no output file for a valid bodyless304 response.
        (folder / "body").write_bytes(b"")
        command = ["curl", "--silent", "--show-error", "--request", method, "--url", url,
                   "--max-time", "30", "--dump-header", str(folder / "headers"),
                   "--output", str(folder / "body"), "--write-out", "%{http_code}"]
        for name, value in headers.items():
            command += ["--header", name + ": " + value]
        if data is not None:
            (folder / "request").write_bytes(data)
            command += ["--data-binary", "@" + str(folder / "request")]
        result = subprocess.run(command, capture_output=True, text=True)
        if result.returncode:
            raise urllib.error.URLError(result.stderr.strip())
        response_headers = {}
        blocks = (folder / "headers").read_text(encoding="iso-8859-1").replace("\r\n", "\n").strip().split("\n\n")
        for line in blocks[-1].splitlines()[1:]:
            name, separator, value = line.partition(":")
            if separator:
                response_headers[name] = value.strip()
        return int(result.stdout), (folder / "body").read_bytes(), response_headers


class ApiError(RuntimeError):
    """An API error response. Branch on error_code (and status), never on the message text.
    uncertain is True when a PATCH or DELETE got no response or a server error: it may or may not have been applied."""
    def __init__(self, status, body, uncertain=False):
        self.status = status
        self.uncertain = uncertain
        self.error_code = body.get("error_code") if isinstance(body, dict) else None
        super().__init__(f"{body.get('error_code')} {body.get('error_params')}: {body.get('errors')} (request {body.get('request_id')})"
                         if isinstance(body, dict) else "HTTP " + str(status) if status else "No response")

def call(name, params=None, body=None, extra_headers=None, key=None):
    route = SPEC["requests"][name]
    headers = {"Authorization": "Bearer " + API_KEY, "Accept": "application/json", **(extra_headers or {})}
    if route["method"] == "POST":
        headers["Idempotency-Key"] = key or str(uuid.uuid4())  # generated ONCE, before retries
    data = None if body is None else json.dumps(body).encode("utf-8")
    if data is not None:
        headers["Content-Type"] = "application/json"
    query = urllib.parse.urlencode(params or {})
    url = BASE + route["path"] + ("?" + query if query else "")
    # A GET, or a POST with its Idempotency-Key, can be sent again. A PATCH or DELETE that got no response or a
    # server error is never resent blindly: it may already have been applied, so the caller reads the record first.
    resend = route["method"] in ("GET", "POST")
    for attempt in range(5):
        try:
            status, raw, response_headers = transport(route["method"], url, headers, data)
        except (urllib.error.URLError, TimeoutError, ConnectionError, http.client.HTTPException):
            if not resend:
                raise ApiError(0, None, uncertain=True)
            if attempt == 4:
                raise
            time.sleep(2 ** attempt)
            continue
        response_headers = {k.lower(): v for k, v in response_headers.items()}
        result = None
        if status != 304 and raw:
            try:
                result = decode_json(raw.decode("utf-8"))
            except (ValueError, UnicodeError):
                if status < 400:
                    raise RuntimeError("Expected a JSON success response")
        if status >= 500 and not resend:
            raise ApiError(status, result, uncertain=True)
        retry = status == 429 or status >= 500 or (status == 409 and isinstance(result, dict) and result.get("error_code") == "idempotency_key_in_use")
        if retry:
            if attempt == 4:
                raise RuntimeError("Retry limit reached; check the request outcome before starting a new create")
            delay = response_headers.get("retry-after", str(2 ** attempt))
            time.sleep(max(0, float(delay)))
            continue
        if status >= 400:
            raise ApiError(status, result)
        return {"status": status, "body": result, "headers": response_headers}
    raise RuntimeError("Retry limit reached")

def pages(name, params=None):
    offset = 0
    while True:
        page = call(name, {**(params or {}), "$limit": 100, "$offset": offset})["body"]
        yield from page["list_data"]
        if not page["has_more"]:
            break
        count = int(page["records_found"])
        if count <= 0:
            raise RuntimeError("Server returned an empty page with has_more=true")
        offset += count

def load_json(path, fallback):
    return json.loads(path.read_text(encoding="utf-8")) if path.exists() else fallback

def save_json(path, value):
    temp = path.with_name(path.name + ".tmp")
    temp.write_text(json.dumps(value, ensure_ascii=False, indent=2) + "\n", encoding="utf-8")
    temp.replace(path)

event_id = os.environ["EXHIBITDAY_EVENT_ID"]  # choose your own event; no arbitrary first search result
matches = list(pages("events", {"event_id": event_id, "$return_event_lites": "true"}))
if not any(str(event["id"]) == event_id for event in matches):
    raise RuntimeError("The selected event was not found")
event = call("event", {"id": event_id})["body"]
task = {"event_id": event_id, "name": os.environ.get("EXHIBITDAY_TASK_NAME", "Order booth carpet"),
        "due_date": (datetime.date.today() + datetime.timedelta(days=14)).isoformat(),
        "details": "Requested from the integration guide"}
section_id = os.environ.get("EXHIBITDAY_TASK_SECTION_ID")
if section_id:
    if not any(str(section["id"]) == section_id for section in event.get("task_sections", [])):
        raise RuntimeError("Choose a task section from this event")
    task["task_section_id"] = section_id
assignee_id = os.environ.get("EXHIBITDAY_ASSIGNEE_ID")
if assignee_id:
    people = call("assignees", {"filter_by_can_have_tasks_assigned": "true"})["body"]["list_data"]
    if not any(str(person["id"]) == assignee_id for person in people):
        raise RuntimeError("Choose an assignable user/resource")
    task["assignee_user_id"] = assignee_id
key = str(uuid.uuid4())  # keep this key with this Task if your process must resume later
created = call("createTask", body=task, key=key)["body"]
print("Created task", created["id"], created["name"])


EXHIBITDAY_PY

Example response

{
  "id": 23456,
  "exhibitday_url": "https://www.exhibitday.com/Workspace/TaskView/98765?tid=23456",
  "event_task_section_id": null,
  "event_task_section": null,
  "display_rank": 0,
  "name": "Order booth carpet",
  "due_date": "2026-12-14",
  "assignee": null,
  "assigned_by": null,
  "contributors": [
    {
      "id": "11111111-2222-4333-8444-555555555555",
      "first_name": "Jane",
      "last_name": "Smith",
      "display_name": "Jane Smith",
      "email": "jane@example.invalid",
      "type": "user",
      "workspace_role": "team_member",
      "is_active": true
    },
    {
      "id": "66666666-7777-4888-8999-aaaaaaaaaaaa",
      "first_name": "Alex",
      "last_name": "Morgan",
      "display_name": "Alex Morgan",
      "email": "alex@example.invalid",
      "type": "user",
      "workspace_role": "team_member",
      "is_active": true
    }
  ],
  "is_completed": false,
  "task_completed_timestamp": null,
  "task_completed_by": null,
  "details": "Requested from the integration guide",
  "comments": [],
  "event": {
    "id": 12345,
    "exhibitday_url": "https://www.exhibitday.com/Workspace/Event/98765?eid=12345",
    "name": "Sample Event",
    "start_date": "2026-12-30",
    "end_date": "2027-01-01",
    "participation_type_id": 1,
    "participation_type": "Committed",
    "format_id": 1,
    "format": "In-Person",
    "event_created_timestamp": "2026-11-30T17:00:00Z",
    "event_last_update_timestamp": "2026-11-30T17:00:00Z"
  },
  "task_created_by": {
    "id": null,
    "first_name": "ExhibitDay",
    "last_name": "API",
    "display_name": "ExhibitDay API",
    "email": null,
    "type": null,
    "workspace_role": null,
    "is_active": true
  },
  "task_created_timestamp": "2026-11-30T17:00:00Z",
  "task_last_update_timestamp": "2026-11-30T17:00:00Z",
  "integration_metadata_field_1": "",
  "integration_metadata_field_2": "",
  "integration_metadata_field_3": "",
  "integration_metadata_field_4": "",
  "integration_metadata_field_5": ""
}
Note: This example uses Event 12345 and the default Task name. The Task Section and Assignee were left blank. The Task ID is an example. The program prints the ID and name.

The curl workflow uses Bash, curl and Python 3. Node.js needs version 18 or later (save as .cjs). Python uses its standard library. C# needs a .NET 8 console project (Program.cs). Java needs Java 11 or later and Gson 2.14.0 at compile time and runtime (Main.java). PHP needs PHP 8.1 or later with cURL. Ruby 3.1 or later and Go 1.18 or later use their standard libraries.

Things to keep in mind

  • If you lose the response, retry the exact request with the same key. For 24 hours, a completed request can return the saved response with Idempotent-Replayed: true.
  • If the key is in use, wait briefly and retry with the same key.
  • If the API returns idempotency_key_indeterminate, check whether the Task exists before deciding whether to create it.
  • Save the exact request and key if your integration must pick up after a restart.
  • If the Event's lock settings include “Also prevent this event's tasks from being modified outside the event, via the main Task Board” (under Lock the Tasks tab in Lock Event), the API returns not_allowed for its Tasks. Change that setting in ExhibitDay before you retry.
  • Manual example: Omit event_id from POST /v1/tasks to add the Task to the Task Board's General Tasks section. The complete example always creates an Event Task.
  • Manual example: Add a comment with POST /v1/tasks/comments, supplying task_id and comment.