API Documentation

Access detailed technical documentation about Moby's REST and GraphQL APIs, endpoints, and usage examples.

Core API Reference

REST API Endpoints

/api/rest

GET /v1/resources

Fetch resources from Moby core API with query filters

Supported methods: GET/POST
curl -X GET 'https://api.moby.dev/v1/resources' \\ -H 'Authorization: Bearer YOURTOKEN' \\ -H 'Content-Type: application/json'

Query Parameters

sort string
filter object

Response

{ "status": "success", "data": [ {"id": 1, "name": "Resource A"}, {"id": 2, "name": "Resource B"} ] }

GraphQL API

Query Example

{
  "query": "{ users { id name email }"
}
                            

Available Types: Query, Mutation, Subscription

Requires JWT auth token in headers

Mutation Example

mutation {
  createPost(input: {
    title: "First Post",
    content: "Hello GraphQL"
  }) {
    id, title
  }
}
                            

Returns created resource with ID

Rate limit: 100 requests/minute

Authentication

Token-based system with JWT. Get your API key from your user dashboard.

Use `Authorization: Bearer YOUR_TOKEN` for requests

curl -X POST 'https://api.moby.dev/auth/login' \\ -H 'Content-Type: application/json' \\ -d '{ "email": "user@example.com", "password": "..." }'