Authentication

All Vmake Labs business APIs (config, quota, and tools) authenticate with a signature made from an Access Key (AK) and Secret Key (SK). OSS uploads use separate temporary credentials returned by the token policy API.

Get credentials

  • Create a key pair on the API keys page of the Vmake Labs developer center to get an Access Key (AK) and Secret Key (SK).
  • The AK is sent in requests. The SK is only used locally to compute signatures and must never appear in request bodies or logs.

Signature headers

Compute the signature from the headers and body you chose for the request, then add Authorization. The table follows the signing script in the HTTP API quick start.

HeaderSourceNotes
HostTarget hostThe host of the request URL. The examples include it in SignedHeaders
X-Sdk-DateSigning timeUTC time in the format YYYYMMDDTHHMMSSZ
AuthorizationSignature resultAdded after signing and excluded from SignedHeaders. Format Bearer <base64>. See Signing
User-AgentCaller identityOptional. Include your app name and version, for example my-service/1.2.3
Content-Typeapplication/jsonRequired when there is a request body

Request headers

When you call the config or quota APIs, you can describe your caller in the request headers. All of these headers are optional, and requests without them succeed. The Python SDK sends them automatically.

HeaderRequiredExampleDescription
X-Agent-VersionNo1.2.3Caller version
X-Agent-OSNomac / windows / linuxOperating system
X-Agent-OS-VersionNo14.5OS version
X-Agent-NameNovibe-coderCaller name, can be read from SKILL_AGENT_NAME
X-Agent-ModelNoclaude-*Model in use
X-Agent-ArchNoarm64 / x86_64CPU architecture
X-Agent-LanguageNoen-USProcess locale
X-Agent-TimezoneNoGMT+00:00Time zone offset
X-Agent-Skill-VersionNov2.0.3Tool version of the caller
X-Agent-Runtime-VersionNo3.13.1Runtime version (such as Python)

Include every X-Agent-* header you actually send in SignedHeaders, and sign with the same header values you send.

Clock sync

  • The server checks the difference between X-Sdk-Date and server time.
  • Enable NTP on your containers and servers. A skew outside the allowed window results in a 401.

Certificates on macOS

Python requests uses the certifi CA bundle, which can fail on some macOS setups because of a missing intermediate certificate (curl and the system Keychain work). If you see SSLError: certificate verify failed, you can:

  1. Upgrade certifi: pip install -U certifi.
  2. Install truststore (Python 3.10 or later) to use system certificates: pip install truststore, then call truststore.inject_into_ssl() at startup.

If credentials leak

  • Treat the SK like a password. Keep it only in a managed secret store or your CI secret store.
  • Never log the full Authorization header or the SK. Check request headers and bodies for secrets before sharing logs.
  • If a key leaks, delete it in the developer center right away and create a new one.

Next steps