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": "user@example.com",
  "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

Interactive JSON editor with format, minify, and real-time validation. Valid/invalid status badge, copy button, and syntax error display.

PRO

devtools1

API Endpoint Explorer

Interactive REST API endpoint reference with method badges, expandable parameter details, and response types. Grouped by resource.

FREE

devtools3

Multi-Language Code Tabs

Code block with language tabs (JavaScript, Python, cURL, Go) and Shiki syntax highlighting. Dark theme with copy-to-clipboard and active tab indicator.

PRO

devtools15

Package Dependency Health

Dependency version tracker with update availability, security fix indicators, and version comparison arrows.

PRO

devtools20

Code Diff Viewer

Unified code diff viewer with dark terminal background. Green additions, red deletions, and gray context lines with file headers.

PRO

devtools6

Application Log Viewer

Terminal-style structured log viewer with level filtering. Color-coded INFO, WARN, ERROR, and DEBUG entries with timestamps and source labels.