Skip to main content
POST
/
projects
/
{project_id}
/
fleets
/
{fleet_id}
/
devices
/
{device_id}
/
mqtt_certificate
Issue an MQTT TLS client certificate for a device
curl --request POST \
  --url https://api.ilyama.golain.io/core/api/v1/projects/{project_id}/fleets/{fleet_id}/devices/{device_id}/mqtt_certificate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'ORG-ID: <api-key>' \
  --data '
{
  "key_algorithm": "rsa"
}
'
{
  "data": {
    "certificateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "certificatePem": "<string>",
    "privateKeyPem": "<string>",
    "caCertificatePem": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.ilyama.golain.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

ORG-ID
string
header
required

Path Parameters

project_id
string<uuid>
required
fleet_id
string<uuid>
required
device_id
string<uuid>
required

Body

application/json

Optional body; omit or send an empty object to use the default algorithm (rsa).

key_algorithm
enum<string>
default:rsa

Key algorithm for MQTT device client certificate CSR generation.

Available options:
rsa,
ecdsa

Response

Certificate issued

data
object
required

PEM material returned once at issuance; the private key is not stored server-side.

ok
enum<integer>
required
Available options:
1