Skip to main content

Get latest command/job status

POST 

https://api.gardin.ag/v1/devices/:deviceId/command/info

Retrieve status of most recent command/job executed by the device.

Required scope(s): [devices:command]

Request

Path Parameters

    deviceId stringrequired

    The target sensor.

    Example: G111045

Responses

Your request was successful.

Schema
    clientId stringrequired

    Unique identifier for the client making the request.

    res objectrequired

    Container for additional response details.

    ack integer

    Acknowledgment status; will always have a value of 1, indicating successful receipt of the request by the API and/or device.

    code string

    Response status from sensor, represented as HTTP status code.

    message string

    Status message from sensor.

    messageId string

    Unique ID (ULID) for the response message.

    job object
    id string

    The unique ID of the job.

    type string

    Possible values: [PickPosesJob, MeasurementJob, AutoFocusJob]

    The type of job to which the status message pertains.

    severity string

    Possible values: [info, warning, error, unknown]

    The severity of the status message.

    sessionId stringrequired

    Session ID (ULID) associated with the client's request, providing context and traceability.

Authorization: oauth2

name: ClientCredentialstype: oauth2description: To access the Gardin API, users are required to authenticate using the [OAuth2 Client Credentials flow](https://auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow). This authentication method is designed for applications that need to access resources on behalf of themselves, not on behalf of a user. It involves the application presenting its own credentials to obtain an access token, which then grants it permission to call the desired API endpoints.

The Client Credentials flow is particularly suitable for server-to-server interactions where the application needs to access resources without user intervention. Upon successful authentication, the application is issued an access token.

Access tokens are represented as [JSON Web Tokens (JWTs)](https://jwt.io/introduction), which are compact, URL-safe means of representing claims to be transferred between two parties. These tokens contain a set of claims that grant specific rights and are securely signed, allowing the recipient to verify their authenticity and integrity.

See [POST /oauth2/token endpoint documentation](/docs/gardin-api/acquire-access-token-client-credentials-flow) for more information.flows: {
  "clientCredentials": {
    "tokenUrl": "https://login.gardin.ag/oauth2/token/",
    "scopes": {}
  }
}
curl -L -X POST 'https://api.gardin.ag/v1/devices/:deviceId/command/info' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Request Collapse all
Base URL
https://api.gardin.ag/v1
Auth
Parameters
— pathrequired
ResponseClear

Click the Send API Request button above and see the response here!