API Response Examples

API Reference

Response Examples

Example responses for the Create User endpoint.

201 CreatedSuccess Response

Headers

Content-Type:application/json
X-Request-Id:req_abc123xyz
X-RateLimit-Remaining:99

Response Body

{
  "id": "usr_abc123xyz",
  "object": "user",
  "email": "[email protected]",
  "name": "John Doe",
  "role": "user",
  "created_at": "2024-01-15T10:30:00Z"
}
400 Bad RequestError Response

Headers

Content-Type:application/json
X-Request-Id:req_def456uvw

Response Body

{
  "error": {
    "code": "validation_error",
    "message": "Invalid email format",
    "field": "email"
  }
}
About this block

API Response ExamplesPRO

API documentation cards showing response examples with color-coded status badges. Headers section, JSON body with copy button, success/error variants.

More DevTools blocks

View all DevTools
PRO

devtools14

JSON Formatter Tool

PRO

devtools1

API Endpoint Explorer

FREE

devtools3

Multi-Language Code Tabs

Get Pro access