curl --request POST \
--url https://public-api.sessionboard.com/v1/event/{eventId}/ticket-types \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"name": "Student pass",
"type": "ticket",
"price_cents": 19500,
"currency": "USD",
"capacity": 150,
"max_per_order": 1,
"visibility": "code"
}
'import requests
url = "https://public-api.sessionboard.com/v1/event/{eventId}/ticket-types"
payload = {
"name": "Student pass",
"type": "ticket",
"price_cents": 19500,
"currency": "USD",
"capacity": 150,
"max_per_order": 1,
"visibility": "code"
}
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Student pass',
type: 'ticket',
price_cents: 19500,
currency: 'USD',
capacity: 150,
max_per_order: 1,
visibility: 'code'
})
};
fetch('https://public-api.sessionboard.com/v1/event/{eventId}/ticket-types', 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://public-api.sessionboard.com/v1/event/{eventId}/ticket-types",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Student pass',
'type' => 'ticket',
'price_cents' => 19500,
'currency' => 'USD',
'capacity' => 150,
'max_per_order' => 1,
'visibility' => 'code'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://public-api.sessionboard.com/v1/event/{eventId}/ticket-types"
payload := strings.NewReader("{\n \"name\": \"Student pass\",\n \"type\": \"ticket\",\n \"price_cents\": 19500,\n \"currency\": \"USD\",\n \"capacity\": 150,\n \"max_per_order\": 1,\n \"visibility\": \"code\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://public-api.sessionboard.com/v1/event/{eventId}/ticket-types")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Student pass\",\n \"type\": \"ticket\",\n \"price_cents\": 19500,\n \"currency\": \"USD\",\n \"capacity\": 150,\n \"max_per_order\": 1,\n \"visibility\": \"code\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.sessionboard.com/v1/event/{eventId}/ticket-types")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Student pass\",\n \"type\": \"ticket\",\n \"price_cents\": 19500,\n \"currency\": \"USD\",\n \"capacity\": 150,\n \"max_per_order\": 1,\n \"visibility\": \"code\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event_id": 123,
"type": "ticket",
"name": "<string>",
"description": "<string>",
"price_cents": 123,
"currency": "<string>",
"capacity": 123,
"sold": 123,
"available": 123,
"min_per_order": 123,
"max_per_order": 123,
"sales_start_at": "2023-11-07T05:31:56Z",
"sales_end_at": "2023-11-07T05:31:56Z",
"visibility": "public",
"status": "active",
"sort_order": 123,
"settings": {}
}
}Create a ticket type
Add a ticket type to the event. Only name is required; everything else falls back
to the event’s defaults. A new ticket type is not sold on any form until a form lists
it — organizers add it to forms in Sessionboard.
Recorded in the event’s History as an API change. Requires write:registrations.
curl --request POST \
--url https://public-api.sessionboard.com/v1/event/{eventId}/ticket-types \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"name": "Student pass",
"type": "ticket",
"price_cents": 19500,
"currency": "USD",
"capacity": 150,
"max_per_order": 1,
"visibility": "code"
}
'import requests
url = "https://public-api.sessionboard.com/v1/event/{eventId}/ticket-types"
payload = {
"name": "Student pass",
"type": "ticket",
"price_cents": 19500,
"currency": "USD",
"capacity": 150,
"max_per_order": 1,
"visibility": "code"
}
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Student pass',
type: 'ticket',
price_cents: 19500,
currency: 'USD',
capacity: 150,
max_per_order: 1,
visibility: 'code'
})
};
fetch('https://public-api.sessionboard.com/v1/event/{eventId}/ticket-types', 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://public-api.sessionboard.com/v1/event/{eventId}/ticket-types",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Student pass',
'type' => 'ticket',
'price_cents' => 19500,
'currency' => 'USD',
'capacity' => 150,
'max_per_order' => 1,
'visibility' => 'code'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://public-api.sessionboard.com/v1/event/{eventId}/ticket-types"
payload := strings.NewReader("{\n \"name\": \"Student pass\",\n \"type\": \"ticket\",\n \"price_cents\": 19500,\n \"currency\": \"USD\",\n \"capacity\": 150,\n \"max_per_order\": 1,\n \"visibility\": \"code\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://public-api.sessionboard.com/v1/event/{eventId}/ticket-types")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Student pass\",\n \"type\": \"ticket\",\n \"price_cents\": 19500,\n \"currency\": \"USD\",\n \"capacity\": 150,\n \"max_per_order\": 1,\n \"visibility\": \"code\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.sessionboard.com/v1/event/{eventId}/ticket-types")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Student pass\",\n \"type\": \"ticket\",\n \"price_cents\": 19500,\n \"currency\": \"USD\",\n \"capacity\": 150,\n \"max_per_order\": 1,\n \"visibility\": \"code\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event_id": 123,
"type": "ticket",
"name": "<string>",
"description": "<string>",
"price_cents": 123,
"currency": "<string>",
"capacity": 123,
"sold": 123,
"available": 123,
"min_per_order": 123,
"max_per_order": 123,
"sales_start_at": "2023-11-07T05:31:56Z",
"sales_end_at": "2023-11-07T05:31:56Z",
"visibility": "public",
"status": "active",
"sort_order": 123,
"settings": {}
}
}Authorizations
Organization API token. Generate from Organization Settings → API Tokens.
Path Parameters
Event ID
Body
Body of Create a ticket type (where name is required) and Update a ticket type (where
every field is optional). Unknown keys are ignored.
Required on create. Longer names are cut to 255 characters.
255ticket, addon, booth, sponsorship, donation, bundle, session_fee x >= 0ISO 4217 code; upper-cased and cut to 3 characters.
null for unlimited.
x >= 0x >= 0x >= 0x >= 0public, hidden, code active, archived Ticket type settings. Keys may be snake_case or camelCase; unknown keys are dropped. On update, each top-level key you send replaces the stored one.
Show child attributes
Show child attributes
Response
Created. sold is 0 on a new ticket type.
Show child attributes
Show child attributes

