Skip to main content
Encountering errors while interacting with APIs is a common occurrence. Although the StackOne Unified API will try to remediate issues automatically, it is important to understand what each error code signifies. This guide lists the error codes you may encounter while using the StackOne Unified API, the possible reasons behind these errors, and steps for resolution.

HTTP Error Codes

All StackOne API errors follow a consistent response format:

Error Code Reference


Common Error Scenarios

400 Bad Request

Causes:
  • Missing required fields in request body
  • Invalid field types (e.g., string instead of number)
  • Malformed JSON
Example response:
Fix: Check your request body against the API reference for required fields and types.

401 Unauthorized

Causes:
  • Missing Authorization header
  • Invalid API key
  • Expired OAuth credentials for linked account
Error codes: Fix:
  • Verify your API key is correct and has appropriate scopes
  • For expired credentials, ask your customer to re-authenticate via the Integration Hub

403 Forbidden

Causes:
  • API key lacks required scope
  • Linked account lacks permissions in the provider
  • Provider account settings restrict the operation
Fix:
  • Check API key scopes in the Dashboard
  • Verify the linked account has permissions in the provider’s admin settings

404 Not Found

Causes:
  • Resource ID doesn’t exist
  • Resource was deleted
  • Invalid account_id header
Fix: Verify the resource ID exists by listing resources first.

408 Request Timeout

The request took too long to complete. The response includes a Retry-After: 60 header. Fix: Wait 60 seconds and retry. For large data sets, use pagination with smaller page sizes.

412 Precondition Failed

Cause: The linked account belongs to an integration that has been disabled. Error code: AccountIntegrationInactiveError Fix: Re-enable the integration in Dashboard → Integrations, or ask the customer to re-link their account.

429 Too Many Requests

Rate limit exceeded. The response may include a Retry-After header. Fix:
  • Implement exponential backoff in your retry logic
  • Use the StackOne SDK’s built-in retryConfig option
  • Reduce request frequency

501 Not Implemented

The requested action isn’t supported for this provider. Fix: Check the Field Coverage page to see which operations are supported for each provider.

502 Bad Gateway

An error occurred when calling the upstream provider. Example response:
Fix:
  • Check the provider_errors array for details about the upstream failure
  • The provider may be experiencing downtime. Check status.stackone.com for known incidents
  • Retry with exponential backoff

Provider Errors

When the underlying provider API returns an error, the StackOne Unified API includes any data returned by the provider in the provider_errors array:
Always check the provider_errors array for additional context from the upstream provider. This can help diagnose issues specific to the connected system.

Getting Help

For any unresolved issues or further assistance, contact our support team via your dedicated Slack channel or at support@stackone.com.

Status Page

Check system status and incidents

Request Tester

Debug requests directly in the dashboard

Request Logs

View detailed request history

AI Error Explainer

Get AI-powered error resolution steps