Skip to content
Public API
Esc
↑↓navigate↵open⌘Jpreview

List machines by proximity

POST/machine/by-proximity
Authorization
AuthorizationAPI key · headerrequired

The Incoming Secret value (<secretId>.<random>), with or without a Bearer prefix.

Request body
application/json
idstring

Platform machine id to measure proximity from. Alternative to customId.

customIdstring

Custom machine id to measure proximity from. Alternative to id.

limitinteger

Maximum number of machines to return.

machineIdsstring[]

Restrict the candidate machines. Platform machine ids as strings.

Responses
200

Created.

Array of object
object
401

Authentication failed. All causes return this identical response.

codeinteger
messagestring
typestring
default

Downstream errors pass through verbatim; x-error-source names the failing service.

codeinteger
messagestring
typestring
Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST 'https://next.amfg.ai/engine-service/public-api/v1/machine/by-proximity' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "id": "string",
  "customId": "string",
  "limit": 0,
  "machineIds": [
    "string"
  ]
}'
Response
[
  {}
]