Search API documentation

Type to search the API docs.

Fill In Your Custom Event Fields from Another System

Fill in or read your workspace's own Event fields from another system.

Example use case

Another system tracks each Event's approval status. Copy that status into your workspace's custom Integration status field.

What you'll end up with

An updated Event field and a readback of the current value.

Before you start

Have a workspace API key and an editable Event with a visible custom text field, dropdown field (Drop-Down List in Workspace Settings) or URL field.

Good to know

For a dropdown field, send one of the options listed for it in GET /v1/references/event_custom_fields. The same list gives you the field name.

At a glance

Time to try

About 10 minutes

Effect on your data

Updates records

Endpoints

4

A successful update sets or clears one custom field on the Event.

How it works

  1. Find the field name in the workspace list and read the Event's current value and revision.
  2. Send the new value with that revision so the API can check for edits since your read.
  3. Read the Event again to see the current value.
  4. After a successful update to a text or dropdown field, the program can list Events that match the value you set.

Set a field and read it back

These examples use a text field called Integration status. Step 5 is optional and applies to text or dropdown fields.

Step 1: Find the field name

Read the workspace's Event Custom Fields so you can use the exact field_name in the update.

curl -X GET "https://api.exhibitday.com/v1/references/event_custom_fields" -H "Authorization: Bearer YOUR_API_KEY"

Example response (shortened)

{
      "list_data": [{
        "id": 67890,
        "field_name": "custom_67890",
        "event_tab": "Event Information",
        "field_type": "Text (Single-line)",
        "field_label": "Integration status",
        "is_hidden": false,
        "is_filterable": true
      }]
    }

Check: Find your field by field_label. Check that is_hidden is false and field_type is text, dropdown or URL. Step 5 also needs is_filterable to be true.

Step 2: Read the current value and revision

Read the Event with $include_record_revision=true so the update can check whether the Event changed after your read.

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

Example response (shortened)

{
      "id": 12345,
      "record_revision": "REVISION_FROM_STEP_2",
      "custom_fields": [{ "field_name": "custom_67890", "value": "In progress" }]
    }

Check: Find your field in custom_fields and keep the full record_revision from the live response.

Step 3: Update one field

Send the Event ID, the exact field name and the revision from Step 2 so the API can reject a stale update.

curl -X PATCH "https://api.exhibitday.com/v1/events" -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d "{\"id\":12345,\"custom_67890\":\"Approved\",\"expected_revision\":\"REVISION_FROM_STEP_2\"}"

Example response (shortened)

{ "status_code": 200 }

Check: A successful PATCH returns HTTP 200. HTTP 409 with record_changed means the request saved nothing. Read the current Event before deciding what to do next.

Step 4: Read the Event again

Read the Event to see the current value after the update attempt.

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

Example response (shortened)

{
  "id": 12345,
  "custom_fields": [
    {
      "field_name": "custom_67890",
      "value": "Ready"
    }
  ]
}

Check: Find custom_67890 in custom_fields and check its value. After a lost response or uncertain server error, the program tries to read the current value and stops. Readback alone cannot tell you which request set it.

Step 5: Find matching Events, if useful

After a successful text or dropdown update, use the same field name in an Events list filter to find Events with that value. You can also send the field's id as filter_by_custom_field_value_setting_id with filter_by_custom_field_value_setting_value. An empty value finds Events with no value saved for the field.

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

Example response (shortened)

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

Check: Read every page before using the complete list. Use one custom field per request, and only a field whose is_filterable is true (text and dropdown fields, hidden ones included). The filter matches the whole saved value and ignores letter case, accents and spaces before or after it. To match part of the value, add filter_by_custom_field_value_setting_match=contains.

Try it

Before running the example

VariableWhat to put in itRequired?
EXHIBITDAY_API_KEYYour workspace API key.Yes
EXHIBITDAY_EVENT_IDThe ID of an Event you can edit.Yes
EXHIBITDAY_CUSTOM_FIELDThe exact field name, such as custom_67890.Yes
EXHIBITDAY_CUSTOM_VALUEText, a configured dropdown choice or an HTTP or HTTPS URL.Yes

Bash

export EXHIBITDAY_API_KEY='YOUR_API_KEY'
export EXHIBITDAY_EVENT_ID='12345'
export EXHIBITDAY_CUSTOM_FIELD='custom_67890'
export EXHIBITDAY_CUSTOM_VALUE='Approved'

PowerShell

$env:EXHIBITDAY_API_KEY = 'YOUR_API_KEY'
$env:EXHIBITDAY_EVENT_ID = '12345'
$env:EXHIBITDAY_CUSTOM_FIELD = 'custom_67890'
$env:EXHIBITDAY_CUSTOM_VALUE = 'Approved'

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\":{\"fields\":{\"method\":\"GET\",\"path\":\"/references/event_custom_fields\"},\"event\":{\"method\":\"GET\",\"path\":\"/events/info\"},\"updateEvent\":{\"method\":\"PATCH\",\"path\":\"/events\"},\"events\":{\"method\":\"GET\",\"path\":\"/events\"}}}")
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"]
field_name = os.environ["EXHIBITDAY_CUSTOM_FIELD"]  # e.g. custom_67890 from your reference list
value = os.environ["EXHIBITDAY_CUSTOM_VALUE"]  # use a valid current dropdown choice, or text/URL
fields = call("fields")["body"]["list_data"]
field = next((field for field in fields if field["field_name"] == field_name), None)
if field is None:
    raise RuntimeError("Choose a field_name from this workspace's reference list")
kind = field.get("field_type", "").lower()
if field.get("is_hidden") or not (kind.startswith("text") or kind in ("dropdown", "url")):
    raise RuntimeError("Choose a visible text, dropdown or URL field")
# Read with $include_record_revision, then update only if the event's editable fields have not changed since that read.
before = call("event", {"id": event_id, "$include_record_revision": "true"})["body"]
print("Before:", before.get("custom_fields", []))

def update(revision):  # "saved", "changed" (409 record_changed: nothing was saved) or "unknown"
    try:
        call("updateEvent", body={"id": event_id, field_name: value, "expected_revision": revision})
        return "saved"
    except ApiError as error:
        if error.error_code == "record_changed":
            return "changed"
        if error.uncertain:
            return "unknown"
        raise

outcome = update(before["record_revision"])
saved = outcome == "saved"
after = call("event", {"id": event_id})["body"]
print({"saved": "After:", "changed": "The Event changed before the update. Current values:", "unknown": "Update outcome unknown. Current values:"}[outcome], after.get("custom_fields", []))
if saved and (kind.startswith("text") or kind == "dropdown") and value and value.lower() != "null":
    filtered = list(pages("events", {"filter_by_custom_event_field__" + field_name: value}))
    print("Matching events:", len(filtered))
# JSON null clears a supported field; an empty string does NOT mean clear.


EXHIBITDAY_PY

Example response

{
  "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",
  "star_rating": 0,
  "tags": [
    "International",
    "Field Marketing"
  ],
  "website_url": "",
  "venue_name": "",
  "venue_address": "",
  "venue_location_display_name": "",
  "venue_address_latitude": "",
  "venue_address_longitude": "",
  "booth_size": "",
  "booth_number": "",
  "booth_reservation_status_id": 1,
  "booth_reservation_status": "Need to Reserve",
  "booth_reserve_by_date": "",
  "booth_date_reserved": "",
  "budget_booth_reservation": 0.00,
  "budget_booth_services": 0.00,
  "budget_attendee_registrations": 0.00,
  "budget_travel": 0.00,
  "budget_giveaways": 0.00,
  "budget_shipments": 0.00,
  "budget_event_activities": 0.00,
  "budget_misc_expenses": 0.00,
  "budget_sponsorships": 0.00,
  "total_sum_event_budgets": 0.00,
  "booth_reservation_cost": {
    "amount": 125.50,
    "cost_center_breakdown": [
      {
        "cost_center_id": 34567,
        "cost_center": "Marketing",
        "charge": 75.50
      },
      {
        "cost_center_id": 34568,
        "cost_center": "Operations",
        "charge": 50.00
      }
    ]
  },
  "cost_booth_reservation": 125.50,
  "booth_reservation_payment_status_id": 0,
  "booth_reservation_payment_status": "",
  "booth_reservation_payment_due_date": null,
  "booth_reservation_next_payment_due_date": null,
  "booth_reservation_payment_notes": null,
  "booth_reservation_invoice_attachment": {
    "id": 182345,
    "filename": "booth-reservation-invoice.pdf",
    "attachment_created_timestamp": "2027-01-30T12:00:00Z"
  },
  "cost_booth_services": 0.00,
  "cost_attendee_registrations": 0.00,
  "cost_travel_reservations": 0.00,
  "cost_giveaways": 0.00,
  "cost_shipments": 0.00,
  "cost_event_activities": 0.00,
  "cost_misc_expenses": 100.50,
  "cost_sponsorships": 0.00,
  "total_sum_event_costs": 226.00,
  "event_notes": "",
  "booth_notes": "",
  "budget_notes": "",
  "roi_notes": "",
  "roi_num_leads": 0,
  "roi_num_impressions_booth": 0,
  "roi_num_impressions_sponsorships": 0,
  "roi_num_impressions_media": 0,
  "roi_num_meetings_existing_customers": 0,
  "roi_num_meetings_new_customers": 0,
  "roi_amount_actual_sales": 0.00,
  "roi_amount_potential_sales": 0.00,
  "roo_score": null,
  "event_created_timestamp": "2026-11-30T17:00:00Z",
  "event_last_update_timestamp": "2026-11-30T17:00:00Z",
  "event_created_by": {
    "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
  },
  "custom_fields": [
    {
      "label": "Integration status",
      "value": "Ready",
      "notes": "",
      "field_name": "custom_67890",
      "field_type": "Text (Single-line)",
      "field_event_tab": "Info"
    },
    {
      "label": "Setup instructions",
      "value": "Place the display beside the entrance.",
      "notes": "",
      "field_name": "custom_67891",
      "field_type": "Text (Single-line)",
      "field_event_tab": "Booth"
    }
  ],
  "task_sections": [
    {
      "id": 13346,
      "name": "Planning",
      "display_rank": 1
    },
    {
      "id": 13347,
      "name": "At the Event",
      "display_rank": 2
    }
  ],
  "tasks": [
    {
      "id": 14346,
      "exhibitday_url": "https://www.exhibitday.com/Workspace/TaskView/98765?tid=14346",
      "event_task_section_id": 13346,
      "event_task_section": "Planning",
      "display_rank": 1,
      "name": "Confirm booth setup",
      "due_date": "2026-12-21",
      "assignee": {
        "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
      },
      "is_completed": false,
      "task_completed_timestamp": null,
      "task_created_timestamp": "2026-11-30T17:01:00Z",
      "task_last_update_timestamp": "2026-11-30T17:01:00Z"
    },
    {
      "id": 14347,
      "exhibitday_url": "https://www.exhibitday.com/Workspace/TaskView/98765?tid=14347",
      "event_task_section_id": 13347,
      "event_task_section": "At the Event",
      "display_rank": 2,
      "name": "Prepare the staff schedule",
      "due_date": "2026-12-22",
      "assignee": {
        "id": "66666666-7777-4888-8999-aaaaaaaaaaaa",
        "first_name": "Alex",
        "last_name": "Jordan",
        "display_name": "Alex Jordan",
        "email": "alex@example.invalid",
        "type": "user",
        "workspace_role": "team_member",
        "is_active": true
      },
      "is_completed": false,
      "task_completed_timestamp": null,
      "task_created_timestamp": "2026-11-30T17:02:00Z",
      "task_last_update_timestamp": "2026-11-30T17:02:00Z"
    }
  ],
  "misc_expenses_credits": [
    {
      "id": 15346,
      "exhibitday_url": "https://www.exhibitday.com/Workspace/Event/98765?eid=12345&riType=8&riSub=0&riId=15346",
      "description": "Conference meals",
      "is_credit": false,
      "cost": {
        "amount": 125.50,
        "cost_center_breakdown": [
          {
            "cost_center_id": 34567,
            "cost_center": "Marketing",
            "charge": 75.50
          },
          {
            "cost_center_id": 34568,
            "cost_center": "Operations",
            "charge": 50.00
          }
        ]
      },
      "notes": "",
      "payment_due_date": null,
      "payment_status": {
        "id": 0,
        "name": "Not Specified"
      },
      "next_payment_due_date": null,
      "payment_notes": null,
      "invoice_attachment": {
        "id": 685346,
        "filename": "expense-invoice.pdf",
        "attachment_created_timestamp": "2027-01-30T12:00:00Z"
      },
      "event_misc_expense_credit_created_timestamp": "2026-11-30T17:00:00Z",
      "event_misc_expense_credit_last_update_timestamp": "2026-11-30T17:00:00Z"
    },
    {
      "id": 15347,
      "exhibitday_url": "https://www.exhibitday.com/Workspace/Event/98765?eid=12345&riType=8&riSub=0&riId=15347",
      "description": "Supplier refund",
      "is_credit": true,
      "cost": {
        "amount": -25.00,
        "cost_center_breakdown": [
          {
            "cost_center_id": 34567,
            "cost_center": "Marketing",
            "charge": -15.00
          },
          {
            "cost_center_id": 34568,
            "cost_center": "Operations",
            "charge": -10.00
          }
        ]
      },
      "notes": "",
      "payment_due_date": null,
      "payment_status": {
        "id": 0,
        "name": "Not Specified"
      },
      "next_payment_due_date": null,
      "payment_notes": null,
      "invoice_attachment": {
        "id": 685347,
        "filename": "expense-invoice.pdf",
        "attachment_created_timestamp": "2027-01-30T12:00:00Z"
      },
      "event_misc_expense_credit_created_timestamp": "2026-11-30T17:00:00Z",
      "event_misc_expense_credit_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 reads Event 12345 after the update. Its visible text field custom_67890 is called Integration status and now holds Approved. Use a valid value for the field type you select.

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

  • Omit the field or send a blank string to keep its value.
  • To clear a supported field, send JSON null or the string "null". When $ignore_params_with_empty_values=true, use the string "null" to clear a visible field.
  • Send plain text for multi-line fields. The API returns the stored HTML, including encoded characters and line breaks. Decode it to plain text before resubmitting.
  • For dropdowns, the API ignores case and surrounding spaces when matching your input. It saves the configured option.
  • Use the custom File endpoints for Attachment fields.
  • If a field is hidden, the API returns HTTP 400 and names the field in error_params.
  • Send the full revision from the Event read. The API refuses a blank, null or malformed expected_revision.