curl -sS -X POST "$BMA_BASE_URL/v1/machines/<machine_id>/executor_tokens" \
-H "x-api-key: $BMA_API_KEY" \
-H "bma-workspace-id: $BMA_PROJECT_ID" \
-H "content-type: application/json" \
-d '{}'{
"type": "executor_token",
"id": "<string>",
"machine_id": "<string>",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"revoked_at": "2023-11-07T05:31:56Z",
"token": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}Machines
Create an executor token
Issues one more long-lived credential of a BYO machine; its executor exchanges it at executor.<env>/v1/machines/{machine_id}/token. token is shown only in this response.
POST
/
v1
/
machines
/
{machine_id}
/
executor_tokens
curl -sS -X POST "$BMA_BASE_URL/v1/machines/<machine_id>/executor_tokens" \
-H "x-api-key: $BMA_API_KEY" \
-H "bma-workspace-id: $BMA_PROJECT_ID" \
-H "content-type: application/json" \
-d '{}'{
"type": "executor_token",
"id": "<string>",
"machine_id": "<string>",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"revoked_at": "2023-11-07T05:31:56Z",
"token": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}Response
Success.