IT CanvassTalk to an advisor
APIs & integration · LessonBy , SailPoint Architect · Published · IdentityIQ 8.4 · all levels

Errors

Understanding and handling SailPoint API error responses.

Quick answer

API errors return standard HTTP status codes (400, 401, 403, 404, 429, 5xx) with a JSON body describing the problem for programmatic handling.

Key takeaways
  • Standard HTTP status codes
  • JSON error bodies with detail
  • Handle 4xx (client) vs 5xx (server) differently
  • Log correlation IDs for support

The SailPoint API reports problems using standard HTTP status codes accompanied by a JSON body that describes the error, often with a trace or correlation ID. Handling these correctly, distinguishing client mistakes from server issues and retrying only what is safe, is what makes an integration robust.

The status codes that matter

CodeMeaningAction
400Bad requestFix the request
401UnauthenticatedRefresh token
403ForbiddenCheck scopes/rights
404Not foundCheck the resource id
429Rate limitedBack off and retry
5xxServer errorRetry with backoff

Client versus server errors

The 4xx family means the request was wrong, fixing it requires changing your call (bad body, missing scope, wrong id). The 5xx family and 429 mean the server could not serve a valid request right now, so retrying with exponential backoff is appropriate. Blindly retrying a 400 just fails repeatedly.

Use the error body and correlation ID

The JSON body usually carries a human-readable message and a correlation/trace ID. Log that ID, it is what SailPoint support needs to trace a specific failed request, and it turns "the API failed" into a diagnosable event.

Common pitfalls

  • Retrying 4xx errors that will never succeed unchanged.
  • Not logging correlation IDs, making support cases hard.
  • Swallowing the error body and losing the actual reason.

Practice challenge

+0 XPStreak ×0
Question 1 of 3
How are API errors returned?

Frequently asked questions

What does the term Errors refer to in SailPoint?
The SailPoint API reports problems using standard HTTP status codes accompanied by a JSON body that describes the error, often with a trace or correlation ID.
What is the practical takeaway on Errors?
The 4xx family means the request was wrong, fixing it requires changing your call (bad body, missing scope, wrong id).
What is worth remembering about Errors in practice?
The 5xx family and 429 mean the server could not serve a valid request right now, so retrying with exponential backoff is appropriate.
What tends to go wrong with Errors?
Retrying 4xx errors that will never succeed unchanged. Not logging correlation IDs, making support cases hard. Swallowing the error body and losing the actual reason.
Want this with a live instructor and a lab tenant?
SailPoint Developer training →
Already working on SailPoint and stuck on a live ticket?Get an expert SailPoint developer on screen-share to finish your daily tasks with you. Deliver on time, protect your reputation and your job. Monthly support only, no task-wise plans.Task assigned · no idea where to startStill stuck · your job on the lineExpert joins your screenDelivered on timeExplore On Job Support