Skip to content

Query container Id

GET /container/id

Description

Query a container Id by token. This route only works with a container token.

Path parameters

none

Query parameters

none

Return codes

Error code Reason
200 Success.
401 Invalid or missing token.
403 Insufficient permissions (required: API).

Example

Curl request:

curl \
    -X GET 'https://api.infrasonar.com/container/id' \
    -H 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'

Response:

{
    "containerId": 123
}