SupDesk API
SSupDesk API
API Reference
GETLiveness check/health
GETList article categories/v1/article-categoriesPOSTCreate an article category/v1/article-categories
GETGet an article category/v1/article-categories/{id}PATCHUpdate an article category/v1/article-categories/{id}DELETEDelete an article category/v1/article-categories/{id}
GETList help center articles/v1/articlesPOSTCreate a help center article/v1/articles
GETGet a help center article/v1/articles/{id}PATCHUpdate a help center article/v1/articles/{id}DELETEDelete a help center article/v1/articles/{id}GETSearch help center articles/v1/articles/search
GETList beta programs/v1/beta/programsPOSTCreate a beta program/v1/beta/programs
GETGet a beta program/v1/beta/programs/{id}PATCHUpdate a beta program/v1/beta/programs/{id}DELETEDelete a beta program/v1/beta/programs/{id}
GETList testers in a beta program/v1/beta/programs/{programId}/testersPOSTEnroll a tester in a beta program/v1/beta/programs/{programId}/testers
GETGet a beta tester/v1/beta/programs/{programId}/testers/{id}DELETERemove a tester from a beta program/v1/beta/programs/{programId}/testers/{id}
GETList published changelog entries/v1/changelogPOSTCreate a changelog entry/v1/changelog
GETGet a changelog entry/v1/changelog/{id}PATCHUpdate a changelog entry/v1/changelog/{id}DELETEDelete a changelog entry/v1/changelog/{id}
GETList customers/v1/customersPOSTCreate or resolve a customer/v1/customers
GETGet a customer/v1/customers/{id}PATCHUpdate a customer or link its identity/v1/customers/{id}DELETEDelete a customer/v1/customers/{id}
GETList feedback posts/v1/feedbackPOSTCreate a feedback post/v1/feedback
GETGet a feedback post/v1/feedback/{id}
GETList message threads/v1/messagesPOSTCreate a message thread/v1/messages
GETGet a message thread/v1/messages/{threadId}PATCHUpdate a message thread/v1/messages/{threadId}DELETEDelete a message thread/v1/messages/{threadId}
POSTAdd a message to a thread/v1/messages/{threadId}/messages
GETList submissions/v1/submissionsPOSTCreate a submission/v1/submissions
GETGet a submission/v1/submissions/{id}
GETList waitlist signups/v1/waitlist/signupsPOSTCreate or reuse a waitlist signup/v1/waitlist/signups
GETGet a waitlist signup/v1/waitlist/signups/{id}PATCHUpdate a waitlist signup/v1/waitlist/signups/{id}DELETEDelete a waitlist signup/v1/waitlist/signups/{id}
llms.txtPowered by Octri
POST/v1/submissions

Create a submission

Creates a submission for a bug report or feature request. Supply type, title, and email; email must use a valid email format. Optionally include device and operating system context, which is stored as device_context and takes precedence over parsed User-Agent values for fields you provide.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

7 body fields

Submission details. type, title, and email are required; device context is optional.

typestringrequired

Submission type: bug or feature.

Allowed:bugfeature
titlestringrequired

The submission title.

bodystringoptional

The submission's description or additional details.

emailstringrequired

The submitter's email address in a valid email format.

namestringoptional

The submitter's name.

localestringoptional

The submitter's locale.

deviceobjectoptional

Optional device/OS context for the reporting end user. Supplied values win per-field over the parsed User-Agent; the stored context is returned as device_context.

3 status codes
201Returns the created submission in the data object.
dataobjectoptional
401Returned when the request is unauthenticated.
errorobjectoptional
429Returned when the request is rate-limited.
errorobjectoptional

Error handling

type, title, and email are required, and type must be bug or feature. A 401 is returned when the request is unauthenticated, and a 429 is returned when the request is rate-limited. email must use a valid email format; each supplied device context value must be no longer than 64 characters.

import { SupDesk } from "supdesk-api-sdk";

const client = new SupDesk({
  baseUrl: "https://api.supdesk.app",
  auth: { bearer: process.env.API_TOKEN! },
});

const result = await client.submissions.create({
  type: "bug",
  title: "Untitled",
  email: "jane.doe@example.com",
});
Response
{
  "data": {}
}
PreviousList submissionsNextGet a submission