Authentication

Every call to the CTIE DaaS data plane carries one credential: your active API key, sent in a request header. This page covers how to send it, what a rotation does to a running integration, and what a rejected request comes back as.

Send the key in the x-ctie-api-key header

The data plane reads your key from the x-ctie-api-key request header. Send it on every call — there is no query parameter and no cookie that will do instead.

A bearer token is not an alternative here. The Authorization: Bearer token you get when you sign in authenticates your console session — the account, billing and key pages — and is never accepted on a data request.

curl --request GET \
  --get \
  --header "x-ctie-api-key: $CTIE_API_KEY" \
  --data-urlencode "stationId=99_20309_1_2" \
  "https://api.daas.riskma.jp/v1/data/riskma-rainfall"

One active key, rotated atomically

An account holds exactly one active key at a time. Rotating issues the replacement and supersedes the current key in a single operation, so the active slot never holds two keys and is never empty.

The superseded key keeps authenticating for a grace window after the rotation, so traffic in flight does not break mid-deploy. Your API key page shows the instant it stops and how long is left; past that instant the superseded key is rejected. End the window early from the same page if the old key leaked.

Rotate your key

What a rejected request comes back as

A request with no key is rejected with 401 by the authorizer, before any handler runs: nothing is metered and no Catalog Item's code sees it. The body is the canonical envelope, with success false and the error code AUTH_REQUIRED.

A key that is not your active one fails differently. A revoked key, or one whose rotation grace window has closed, is rejected with 403 and the error code KEY_INVALID — which is how you tell a client that forgot the header from a client still sending last week's key.

{
  "success": false,
  "data": null,
  "error": {
    "code": "AUTH_REQUIRED",
    "message": "Authentication required",
    "requestId": "req_01HXYZ"
  },
  "meta": {
    "requestId": "req_01HXYZ",
    "apiVersion": "3.0.6"
  }
}

The key value is shown once

The raw key is displayed once, at the moment it is issued or rotated, and is never shown again. Every later read returns metadata only — when it was issued, its last four characters — never the value itself.

There is no way to retrieve a lost key value, and nobody can look it up for you. Rotate instead: the replacement is one action, and the lost key keeps working until its grace window closes.

Go to your API key