Docs
Skip to Content
DocsGetting started

Getting started

Check that the API is reachable and make your first authenticated request.

Not available yet

The API is not live. The requests below do not work until it launches.

The API is served from https://api.tintage.com, and every endpoint is under /v1. Responses are JSON.

Check that the API is up

The health endpoint needs no key:

curl https://api.tintage.com/v1/health
{ "status": "ok" }

Store a secret key

Keep the key as a secret on your server, in TINTAGE_SECRET_KEY. The dashboard screen for creating keys is not built yet. See Authentication for the key types.

Make an authenticated request

Send the key in the Authorization header. This request returns the workspace, project and key the secret belongs to:

curl https://api.tintage.com/v1/workspace \
  -H "Authorization: Bearer $TINTAGE_SECRET_KEY"
{ "workspaceId": "org_123", "projectId": "8c6f1c1e-0b1a-4b8e-9a43-5f0d3c1b2a10", "keyId": "key_456", "kind": "secret" }

Errors

Every error has the same shape. Quote the requestId when you contact support.

{
  "error": { "code": "unauthorized", "message": "Send Authorization: Bearer <api key>." },
  "requestId": "5b0f7c3e-1c2d-4c1e-9a53-0f6d2f1d8c11"
}

Next

Was this page helpful?

© 1970 Tintage

We use essential cookies to keep you signed in. Optional cookies stay off unless you accept them. Cookie details.