Skip to main content

Quickstart

This guide gets you from no setup to a successful authenticated request with the fewest moving parts possible.

If you have not yet confirmed access, plans, or environment readiness, start with Access and Prerequisites first.

Before you begin​

Make sure you have:

  • access to Settings -> Developer settings in SpotDraft
  • a generated Client Id and Client Secret
  • the correct API base host for the workspace you are targeting
  • a place to store secrets outside source control

Step 1: choose the correct API host and path​

Your integration should call the API host for the target workspace, not the developer portal hostname. SpotDraft exposes versioned public paths such as /api/v2.1/public/....

If you are unsure which host to use, confirm it before building. Wrong-host traffic is one of the most common sources of confusing 404 and redirect behavior.

Step 2: make the first authenticated request​

Use a simple GET request first. The objective here is not business logic; it is confirming that hostname, credentials, and client behavior are all correct.

curl -sS "https://YOUR_API_HOST/api/v2.1/public/contract_types/" \
-H "client-id: YOUR_CLIENT_ID" \
-H "client-secret: YOUR_CLIENT_SECRET" \
-H "Accept: application/json"

You are looking for:

  • a 2xx status code
  • a JSON response body, typically a list of contract types your workspace can access
  • no redirect to another host or protocol

Step 3: check the API reference​

Once the first request works, confirm the endpoint you need exists in the API reference before you build:

Step 4: if it fails, check the basics first​

Check these in order:

  1. wrong API host
  2. credentials generated in a different workspace
  3. missing or misspelled client-id or client-secret
  4. redirect caused by http:// or a trailing slash mismatch

If your client follows redirects automatically, disable that while debugging. It is much easier to fix the exact URL than to debug a method-changing redirect.

Step 5: decide your next path​

Once the first request works, move directly to the guide that matches your intended integration.