API Schemas
Headers
The Machina Sports API requires two HTTP headers:
- A
Content-Typeheader specifying the request payload format - A
X-Api-Tokenheader containing the authentication token for request authorization
shell
curl --request POST \
--url https://{api-address}.org.machina.gg/agent \
--header 'Content-Type: application/json' \
--header 'x-api-token: <api-key>' \
--data '{}'Sort, Filter and Paginate
The Machina Sports API works with sorting, filtering and paging for some larger requests. These mechanisms are defined in request body:
- The
filtersobject defines filtering mechanism criteria - The
sortersarray defines a sorting mechanism- First a property to defines sorting criteria
- Second, 1 for ascending, -1 for descending
- The
pageandpage_sizeproperties defines specific page and the limit of items
json
{
"filters": {
"name": "Conversational Agent"
},
"sorters": [
"_id",
1
],
"page": 1,
"page_size": 10
}Next up
Create API key to build an customized integration with Machina.

