Skip to Content
CloudAPI and integrationsPublic M2M APIPublic M2M API — ssh-keys

Public M2M API — ssh-keys

Review the operation, its input and access requirements. Parameter names and enum values are protocol identifiers and must retain the exact spelling shown. Optional/defaulted input is marked as such; required fields nested beneath an optional object apply when that object is supplied. Only statically recognized literal constraints are shown; additional validation, conditional requirements and provider rules may apply.

Authentication and permissions · Requests, results and recovery

/api/v1/ssh-keys

Exported methods: GET, POST, DELETE

GET

  • Resource scopes: servers:read
  • Query parameters: tokenId
  • Response keys observed across outcomes: data, providerKeys, sshKeys

POST

  • Resource scopes: servers:write
  • Explicit response statuses: 201, 422
  • Explicit error codes: invalid_request, provider_error
  • Response keys observed across outcomes: data, sshKey

Validated request fields

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
actionenumYesNoupload, add, import, generatedefault("upload")
labelsobjectYesNo——
namestringNoNo—min(1), max(120)
publicKeystringYesNo—min(20), max(16384)
tokenIdstringYesNo——

DELETE

  • Resource scopes: servers:write
  • Query parameters: id, keyId, tokenId
  • Explicit response statuses: 400, 404, 422
  • Explicit error codes: invalid_request, not_found, provider_error
  • Response keys observed across outcomes: deleted, id

Provide id or keyId in query or JSON; optional tokenId requests provider cleanup. For an existing local key, provider cleanup is best-effort and local deletion can succeed despite provider failure. With no local match, tokenId is required for direct provider deletion. Verify both states.

JSON properties observed: id, keyId, tokenId.

These names are read by the handler; they are not a complete schema or a promise that every property applies to every branch. Check the validation messages and operation result.

/api/v1/ssh-keys/{id}

Exported methods: GET, PATCH, DELETE

GET

  • Resource scopes: servers:read
  • Path parameters: id
  • Query parameters: tokenId
  • Explicit response statuses: 404
  • Explicit error codes: not_found
  • Response keys observed across outcomes: data, kind, sshKey

PATCH

  • Resource scopes: servers:write
  • Path parameters: id
  • Explicit response statuses: 404, 422
  • Explicit error codes: invalid_request, not_found
  • Response keys observed across outcomes: data, sshKey

Validated request fields

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
labelsobjectYesNo——
namestringYesNo—min(1), max(100)

DELETE

  • Resource scopes: servers:write
  • Path parameters: id
  • Query parameters: tokenId
  • Explicit response statuses: 404, 502
  • Explicit error codes: not_found, upstream_error
  • Response keys observed across outcomes: deleted, id, upstreamKeyId

Request input was not extracted for this operation; consult its specific contract before sending. Do not infer that no body is required.