Remove a sponsor
US Region: https://public-api.sessionboard.com · EU Region: https://public-api-eu.sessionboard.com
Takes a sponsor off the event's list and off its sessions. Requires write:sessions. Refused for a key restricted to particular events. Also at DELETE /v1/sessions-workspace/events/{eventId}/sponsors/{sponsorId}.
Request example
curl --request DELETE \ --url 'https://public-api.sessionboard.com/v1/organization/{orgId}/sessions-workspace/events/{eventId}/sponsors/{sponsorId}' \ --header 'x-access-token: <api-token>'const response = await fetch('https://public-api.sessionboard.com/v1/organization/{orgId}/sessions-workspace/events/{eventId}/sponsors/{sponsorId}', { method: 'DELETE', headers: { "x-access-token": "<api-token>" },});
const data = await response.json();console.log(data);import requests
response = requests.request( "DELETE", "https://public-api.sessionboard.com/v1/organization/{orgId}/sessions-workspace/events/{eventId}/sponsors/{sponsorId}", headers={ "x-access-token": "<api-token>" },)
print(response.json())<?php
$curl = curl_init();
curl_setopt_array($curl, [ CURLOPT_URL => "https://public-api.sessionboard.com/v1/organization/{orgId}/sessions-workspace/events/{eventId}/sponsors/{sponsorId}", CURLOPT_RETURNTRANSFER => true, CURLOPT_CUSTOMREQUEST => "DELETE", CURLOPT_HTTPHEADER => [ "x-access-token: <api-token>", ],]);
$response = curl_exec($curl);curl_close($curl);
echo $response;package main
import ( "fmt" "io" "net/http")
func main() { req, _ := http.NewRequest("DELETE", "https://public-api.sessionboard.com/v1/organization/{orgId}/sessions-workspace/events/{eventId}/sponsors/{sponsorId}", nil) req.Header.Add("x-access-token", "<api-token>")
res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))}HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://public-api.sessionboard.com/v1/organization/{orgId}/sessions-workspace/events/{eventId}/sponsors/{sponsorId}")) .header("x-access-token", "<api-token>") .method("DELETE", HttpRequest.BodyPublishers.noBody()) .build();
HttpResponse<String> response = HttpClient.newHttpClient() .send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());Try it
Response headers
Authorizations
x-access-tokenstringheaderOrganization API token. Generate from Organization Settings → API Tokens.
AuthorizationBearer <token>headerorOAuth 2.1 access token. Obtained via the OAuth PKCE flow at
/oauth/token.
Send one of these. See Authentication.
Path parameters
orgIdstringpathrequiredYour organization ID. Any other organization returns
404.eventIdintegerpathrequiredThe Sessions event ID.
sponsorIdstring<uuid>pathrequiredThe sponsor ID.
Responses
200application/json
OK
successbooleanpayloadobjectShow child attributes
deletedboolean
400application/json
VALIDATION_ERROR: the body or a path id does not match the schema. source is always accepted.
errorstring- Allowed values
"VALIDATION_ERROR", "SCOPE_REQUIRED", "ORG_WIDE_TOKEN_REQUIRED", "FORBIDDEN", "NOT_FOUND", "CONFLICT", "QUOTA_EXCEEDED"
messagestringrequiredcodestringA more specific reason:
enterprise_only,trial_ended,plan_ended,in_use.upgradestringWith
enterprise_only: what needs a bigger plan or the platform (events,speakers,review_plans,forms, …).
401
Missing, invalid or expired token.
403application/json
SCOPE_REQUIRED: the token lackswrite:sessions.ORG_WIDE_TOKEN_REQUIRED: the key is restricted to particular events.code: enterprise_onlywithupgrade: the self-serve plan does not include it (another event this year, more speakers on the event); a person chooses a bigger plan or talks to us about the platform.code: trial_endedorplan_ended: the self-serve plan is read-only; everything can still be read.FORBIDDENwith nocode: the token's user is not an organization admin.
errorstring- Allowed values
"VALIDATION_ERROR", "SCOPE_REQUIRED", "ORG_WIDE_TOKEN_REQUIRED", "FORBIDDEN", "NOT_FOUND", "CONFLICT", "QUOTA_EXCEEDED"
messagestringrequiredcodestringA more specific reason:
enterprise_only,trial_ended,plan_ended,in_use.upgradestringWith
enterprise_only: what needs a bigger plan or the platform (events,speakers,review_plans,forms, …).
404application/json
NOT_FOUND: orgId is not the token's organization, or the event, session or sponsor is not in it.
errorstring- Allowed values
"VALIDATION_ERROR", "SCOPE_REQUIRED", "ORG_WIDE_TOKEN_REQUIRED", "FORBIDDEN", "NOT_FOUND", "CONFLICT", "QUOTA_EXCEEDED"
messagestringrequiredcodestringA more specific reason:
enterprise_only,trial_ended,plan_ended,in_use.upgradestringWith
enterprise_only: what needs a bigger plan or the platform (events,speakers,review_plans,forms, …).
423
A person has paused connected assistants for the organization (code: AGENT_WRITES_PAUSED); writes wait until they resume it in Sessionboard.
429
The token's request limit (100 requests per 15 minutes by default) or, for writes, its daily write quota. Wait Retry-After seconds.
Retry-AfterintegerheaderSeconds to wait before retrying.
Response examples
{ "success": true, "payload": { "deleted": true }}{ "error": "VALIDATION_ERROR", "message": "<string>", "code": "<string>", "upgrade": "<string>"}{ "message": "This event has reached the speakers your plan includes. Bigger events are part of Growth or the Sessionboard platform.", "code": "enterprise_only", "upgrade": "speakers"}{ "message": "Your Sessions trial has ended. Choose a plan to keep going.", "code": "trial_ended"}{ "error": "VALIDATION_ERROR", "message": "<string>", "code": "<string>", "upgrade": "<string>"}