Commerce

Read a connected Drupal site's mode

POST
/v1/drupal/status

Authenticated with the key the site received when it connected. Every Drupal site runs in Shadow today and entitlement is always null: no enforcement entitlement exists for Drupal workspaces yet. An unknown organization and a wrong key get the same 401. Read-only; safe to repeat.

Authorization

DrupalSiteKey
AuthorizationBearer <token>

The organization API key a Drupal site received, once, when it connected (connect/verify or connect/code). Only that key is accepted, compared with the hash stored at connect; another key of the same organization is refused.

In: header

Request Body

application/json

org_id*string
Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/drupal/status" \  -H "Content-Type: application/json" \  -d '{    "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b"  }'
{  "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",  "site_url": "string",  "mode": "shadow",  "entitlement": null}