API Reference

Welcome to the SuperDocs Example API reference. This documentation is automatically generated from an OpenAPI specification and features interactive playgrounds for testing endpoints.

Base URL

https://jsonplaceholder.typicode.com

Available Endpoints

Authentication

Some endpoints require authentication. Use a Bearer token in the Authorization header:

Terminal window
curl -X POST https://jsonplaceholder.typicode.com/posts \
-H "Authorization: Bearer your-token-here" \
-H "Content-Type: application/json" \
-d '{"title": "My Post", "body": "Content", "userId": 1}'

Users

MethodEndpointDescription
GET/usersList all users
POST/usersCreate a new user
GET/users/{id}Get user by ID
PUT/users/{id}Update user
DELETE/users/{id}Delete user

Posts

MethodEndpointDescription
GET/postsList all posts
POST/postsCreate a new post
GET/posts/{id}Get post by ID

Comments

MethodEndpointDescription
GET/posts/{id}/commentsGet comments for a post