Improve this doc
Detailed information for resources

balenaCloud API Resources

Note: We recently renamed applications to fleets and are in the process of updating our API resources. Application resources continue to function correctly and can be used to work with fleets. Find out more about the changes here.

Available fields

id
user
title
public_key
created_at

Examples

Get all SSH keys

curl -X GET \
"https://api.balena-cloud.com/v6/user__has__public_key" \
-H  "Content-Type: application/json"  \
-H "Authorization: Bearer <AUTH_TOKEN>" 

Get SSH key by ID

curl -X GET \
"https://api.balena-cloud.com/v6/user__has__public_key(<ID>)" \
-H  "Content-Type: application/json"  \
-H "Authorization: Bearer <AUTH_TOKEN>" 

Add new SSH key to account

curl -X POST \
"https://api.balena-cloud.com/v6/user__has__public_key" \
-H  "Content-Type: application/json"  \
-H "Authorization: Bearer <AUTH_TOKEN>" \
--data '{
    "public_key": "<SSH KEY>",
    "title": "<TITLE>",
    "user": "<USER ID>"
}'

Remove SSH key

curl -X DELETE \
"https://api.balena-cloud.com/v6/user__has__public_key(<ID>)" \
-H  "Content-Type: application/json"  \
-H "Authorization: Bearer <AUTH_TOKEN>"