POST /v2/account/keys
To add a new SSH public key to your DigitalOcean account, send a POST request to /v2/account/keys
. Set the name
attribute to the name you wish to use and the public_key
attribute to the full public key you are adding.
Servers
- https://api.digitalocean.com
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
id |
Integer | No |
A unique identification number for this key. Can be used to embed a specific SSH key into a Droplet. |
name |
String | Yes |
A human-readable display name for this key, used to easily identify the SSH keys when they are displayed. |
fingerprint |
String | No |
A unique identifier that differentiates this key from other keys using a format that SSH recognizes. The fingerprint is created when the key is added to your account. |
public_key |
String | Yes |
The entire public key string that was uploaded. Embedded into the root user's |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.