Platform contracts и schemas
Endpoints для чтения версий контрактов и JSON Schema. Они нужны разработчикам, которые хотят проверять формат envelopes, webhook payloads, idempotency, pagination и других API-структур.
Public contracts
Current contract versions.
GET /api/v3/public/contracts HTTP/1.1
Accept: */*
Current contract versions.
{
"state": 0,
"message": "text",
"result": {
"contracts": [
{
"key": "operation-contract",
"version": "operation-contract-v1",
"title": "text",
"status": "current",
"stability": "stable",
"description": "text",
"headers": [
"text"
],
"schemas": [
"text"
]
}
]
},
"meta": {
"request_id": "text",
"correlation_id": "text",
"timestamp": "2026-01-01T00:00:00.000Z",
"pagination": {
"mode": "page",
"current_page": 1,
"per_page": 1,
"total": 1,
"last_page": 1,
"from": 1,
"to": 1,
"cursor": "text",
"next_cursor": "text",
"has_more": true
}
}
}Public contract by key
operation-contractContract version.
Standard error envelope.
GET /api/v3/public/contracts/{contract} HTTP/1.1
Accept: */*
{
"state": 0,
"message": "text",
"result": {
"contract": {
"key": "operation-contract",
"version": "operation-contract-v1",
"title": "text",
"status": "current",
"stability": "stable",
"description": "text",
"headers": [
"text"
],
"schemas": [
"text"
]
}
},
"meta": {
"request_id": "text",
"correlation_id": "text",
"timestamp": "2026-01-01T00:00:00.000Z",
"pagination": {
"mode": "page",
"current_page": 1,
"per_page": 1,
"total": 1,
"last_page": 1,
"from": 1,
"to": 1,
"cursor": "text",
"next_cursor": "text",
"has_more": true
}
}
}Public schemas
JSON Schema catalog.
GET /api/v3/public/schemas HTTP/1.1
Accept: */*
JSON Schema catalog.
{
"state": 0,
"message": "text",
"result": {
"schemas": [
{
"key": "success-envelope.v1",
"title": "text",
"version": "text",
"contract": "text",
"content_type": "application/schema+json",
"endpoint": "text"
}
]
},
"meta": {
"request_id": "text",
"correlation_id": "text",
"timestamp": "2026-01-01T00:00:00.000Z",
"pagination": {
"mode": "page",
"current_page": 1,
"per_page": 1,
"total": 1,
"last_page": 1,
"from": 1,
"to": 1,
"cursor": "text",
"next_cursor": "text",
"has_more": true
}
}
}Public schema by key
success-envelope.v1JSON Schema payload.
Standard error envelope.
GET /api/v3/public/schemas/{schema} HTTP/1.1
Accept: */*
{
"state": 0,
"message": "text",
"result": {
"schema": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
},
"meta": {
"request_id": "text",
"correlation_id": "text",
"timestamp": "2026-01-01T00:00:00.000Z",
"pagination": {
"mode": "page",
"current_page": 1,
"per_page": 1,
"total": 1,
"last_page": 1,
"from": 1,
"to": 1,
"cursor": "text",
"next_cursor": "text",
"has_more": true
}
}
}Private contracts
Sanctum token in Authorization: Bearer <token> format.
Standard success envelope.
Standard error envelope.
GET /api/v3/private/contracts HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"state": 0,
"message": "text",
"result": null,
"meta": {
"request_id": "text",
"correlation_id": "text",
"timestamp": "2026-01-01T00:00:00.000Z",
"pagination": {
"mode": "page",
"current_page": 1,
"per_page": 1,
"total": 1,
"last_page": 1,
"from": 1,
"to": 1,
"cursor": "text",
"next_cursor": "text",
"has_more": true
}
}
}Private contract by key
Sanctum token in Authorization: Bearer <token> format.
Standard success envelope.
Standard error envelope.
GET /api/v3/private/contracts/{contract} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"state": 0,
"message": "text",
"result": null,
"meta": {
"request_id": "text",
"correlation_id": "text",
"timestamp": "2026-01-01T00:00:00.000Z",
"pagination": {
"mode": "page",
"current_page": 1,
"per_page": 1,
"total": 1,
"last_page": 1,
"from": 1,
"to": 1,
"cursor": "text",
"next_cursor": "text",
"has_more": true
}
}
}Private schemas
Sanctum token in Authorization: Bearer <token> format.
Standard success envelope.
Standard error envelope.
GET /api/v3/private/schemas HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"state": 0,
"message": "text",
"result": null,
"meta": {
"request_id": "text",
"correlation_id": "text",
"timestamp": "2026-01-01T00:00:00.000Z",
"pagination": {
"mode": "page",
"current_page": 1,
"per_page": 1,
"total": 1,
"last_page": 1,
"from": 1,
"to": 1,
"cursor": "text",
"next_cursor": "text",
"has_more": true
}
}
}Private schema by key
Sanctum token in Authorization: Bearer <token> format.
Standard success envelope.
Standard error envelope.
GET /api/v3/private/schemas/{schema} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"state": 0,
"message": "text",
"result": null,
"meta": {
"request_id": "text",
"correlation_id": "text",
"timestamp": "2026-01-01T00:00:00.000Z",
"pagination": {
"mode": "page",
"current_page": 1,
"per_page": 1,
"total": 1,
"last_page": 1,
"from": 1,
"to": 1,
"cursor": "text",
"next_cursor": "text",
"has_more": true
}
}
}Последнее обновление
Это было полезно?