Path parameters
-
The slug/name for the machine definition.
Minimum length is
1
. Format should match the following pattern:^[a-zA-Z0-9_-]{1,128}$
.
GET
/machines/{machineSlug}
curl \
-X GET https://api.statebacked.dev/machines/my-machine \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"machine": {
"createdAt": "2023-05-04T09:42:00+00:00",
"currentVersion": {
"id": "string",
"createdAt": "2023-05-04T09:42:00+00:00",
"clientInfo": "string"
},
"indexes": [
"string"
]
}
}
Response examples (200)
{
"machine": {
"createdAt": "2024-05-04T09:42:00+00:00",
"currentVersion": {
"id": "string",
"createdAt": "2024-05-04T09:42:00+00:00",
"clientInfo": "string"
},
"indexes": [
"string"
]
}
}
Response examples (403)
{
"error": "string",
"code": "missing-scope"
}
Response examples (403)
{
"error": "string",
"code": "missing-scope"
}