Skip to Content

ENDPOINT_OR_OBJECT_NAME

One-sentence description of what this endpoint / object / service does.

Base URL: https://api.example.com/v1
Authentication: Bearer token — see Authentication


Endpoints

GET /resource

Short description.

Query Parameters

ParameterTypeRequiredDefaultDescription
paramstringYesWhat it controls.
paramintegerNo10What it controls.

Response 200 OK

{ "id": "string", "name": "string", "status": "active | inactive" }

Error Codes

CodeMeaning
400Bad request — missing or invalid parameter.
401Unauthorized — check token.
404Resource not found.

POST /resource

Short description.

Request Body (application/json)

FieldTypeRequiredDescription
namestringYesName of the resource. Max 128 chars.
configobjectNoOptional configuration block.

Example Request

curl -X POST https://api.example.com/v1/resource \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{"name": "my-resource"}'

Response 201 Created

{ "id": "abc123", "name": "my-resource", "createdAt": "2026-01-01T00:00:00Z" }

Object Reference

ResourceObject

PropertyTypeDescription
idstringUnique identifier. Read-only.
namestringDisplay name. Max 128 chars.
status"active" | "inactive"Current state.
createdAtstring (ISO 8601)Creation timestamp. Read-only.

Was this page helpful?