Data Access Path · 1/7
Recommended reading order, not completion status. Optional steps can be skipped.
View all steps
Before you start: Identify your application and organization administrator; use this page's links to arrange an application or subscription if needed.
Get & Use an API Key
Obtain a Key and Data Access
If you have key-management permission in your organization (owner or admin), generate a Consumer API Key in Portal under Applications → Application Keys. Otherwise, ask your organization administrator for one and receive it through a secure channel. Once you have a key, you can call the API without signing in to Portal.
New applications dynamically inherit the organization’s current scopes, capabilities, and quotas by default, rather than copying the configuration at creation time. Inherited applications follow organization policy changes. If no organization policy is configured, the current platform default applies. The customer Portal shows the policy source under application Access restrictions and organization Access Policy.
To restore an existing organization to platform-default inheritance, ask the platform administrator to switch the source and confirm in the organization’s Access Policy page. The customer portal cannot switch it. Empty organization scopes mean unrestricted, not inherited; additional application restrictions still apply.
Existing independent and subscription grants remain capped by organization limits; widening the organization policy does not automatically widen those grants. Ask the platform administrator to review and switch an application to inheritance. The customer portal cannot expand grants. Additional application restrictions always continue to narrow access. If they have no overlap with the current scope, access is temporarily denied. Explicitly disabled grants never reactivate automatically or fall back to the default.
Legacy applications without any grant records continue to use the enabled platform default, capped by organization limits. If that default is disabled and no other active grant exists, access is denied. Collector Keys and internal Admin Tokens cannot replace the Consumer API Key used here.
Configure Your Environment
All examples use WHALE_BASE_URL and WHALE_API_KEY. The production base URL is https://www.marsyoo.com; for a test environment, use the URL and test key your organization administrator gives you.
Inject the key through a secret manager or protected environment variables. Alternatively, enter it interactively in Bash to avoid putting the value in command history:
export WHALE_BASE_URL="${WHALE_BASE_URL:-https://www.marsyoo.com}"
read -r -s -p "Consumer API Key: " WHALE_API_KEY
printf '\n'
export WHALE_API_KEYNever print the key or expose it in a frontend. Next, make your first query to verify the setup.
Authenticate Requests
Every external read endpoint requires:
Authorization: Bearer whale_consumer_xxxThe key belongs to an application, not a person, and cannot be used to sign in to Portal. Whale derives the application identity from the key; clients must not submit or trust a consumer_id.
Key Practices
- Use separate keys for each environment and integration.
- Store keys in Key Vault, a secret manager, or protected environment variables.
- Never place a key in source code, browser code, images, or URL parameters.
- Rotate by issuing a new key, switching traffic, and then revoking the old key.
- Logs may contain the key prefix, never the full value.
Response Semantics
| HTTP | code | Meaning | Action |
|---|---|---|---|
| 401 | unauthorized | Missing, invalid, expired, or revoked key | Stop retrying and inspect credentials |
| 403 | entitlement_denied | The application lacks the requested scope | Narrow the query or request a subscription change |
| 429 | rate_limit_exceeded | A rate limit was exceeded (per-second, concurrency or daily); the message names the level and field | Honor Retry-After; daily limits reset at 00:00 UTC |
| 429 | quota_exceeded | Daily live query count reached | Wait for the UTC reset or request a change |
The rate limits in effect for an application are listed on its Access restrictions page in the Portal.
Completion check: Receive a Consumer Key securely, configure the base URL and environment variables, and confirm data/field grants; never paste secrets into agent conversations.