Skip to content

API reference

The SemanticsOn REST API has 122 endpoints in 15 groups. This reference is generated from the same definitions that route and validate requests, so it always matches what the API accepts.

Basics

API basics
Details
Base URLhttps://semanticson.com/api/v1 (examples use this host; your account's API lives at https://semanticson.vercel.app/api/v1)
AuthenticationAuthorization: Bearer <key> on every request. See authentication.
FormatJSON in and out (Content-Type: application/json), UTF-8, camelCase field names, ISO 8601 timestamps.
ObjectsEvery object has object (its type) and id. Lists return { object: "list", data, hasMore, nextCursor }.
Status codes200 read or update, 201 created, 202 accepted (work continues in the background), 204 deleted. Errors are described in errors.
Headersx-request-id on every response; x-ratelimit-* on authenticated responses; Idempotency-Key accepted on writes.

OpenAPI, Postman & Insomnia

A complete OpenAPI 3.1 description of the API, including webhook payloads, is published at https://semanticson.vercel.app/api/v1/openapi.json. It is public, so tools can fetch it without a key.

Import into Postman

  1. In Postman choose Import, select Link and paste the URL above.
  2. Pick Postman Collection as the import format. Requests are grouped by the same tags as this reference.
  3. Open the collection's Authorization tab, choose Bearer Token and enter your key (store it in an environment variable rather than the collection).

Import into Insomnia

  1. Choose Create → Import, select URL and paste the same address.
  2. Set an environment variable for the key and use it as a Bearer token on the collection.
Download the document
curl -o semanticson-openapi.json https://semanticson.vercel.app/api/v1/openapi.json

The document also works with code generators such as openapi-generator. There is no official SDK: every example on this site is a plain HTTP request you can adapt to any language.

All endpoints

Filter the list, or open a group to see parameters, examples and responses. Press / to jump to the filter.

122 of 122 endpoints