Get the organization
liveGET/v1/organization
The organization this credential belongs to. Settings are changed in the app.
Responses
errors use the error envelope| 200 | Organization · The organization. |
| 401 | No token, an expired token, or a token for another audience (UNAUTHENTICATED). |
| 403 | The token lacks a scope (INSUFFICIENT_SCOPE; WWW-Authenticate names it), the user's role or membership does not allow it (PERMISSION_DENIED, OPERATION_NOT_PERMITTED, ORG_MEMBERSHIP_REQUIRED, ORGANIZATION_MISMATCH), it needs a stronger sign-in (STEP_UP_REQUIRED), the feature is off for the organization (CAPABILITY_DISABLED), the organization's plan does not include the feature (PLAN_FEATURE_NOT_INCLUDED: write operations; for an API credential without the API feature, every operation that names an organization; context.capability names the feature and context.required_plan the plan that includes it), a demo company refuses it (DEMO_ORG_ACTION_BLOCKED), or a test copy of a company refuses handing out an e-MTA file (SANDBOX_ACTION_BLOCKED, context.action); FORBIDDEN when nothing more specific applies. |
| 404 | Not found. This operation's own codes: ORG_NOT_FOUND. |
| 429 | Rate limit exceeded (RATE_LIMITED). Wait Retry-After seconds. |
Errors this operation can return
switch oncode, never on message| Code | Status | When |
|---|---|---|
ORG_NOT_FOUND | 404 | That company no longer exists. |
Plus the general codes every operation can answer (UNAUTHENTICATED, RATE_LIMITED …): handle them once.