Skip to content
  • Auto
  • Light
  • Dark

Shared

Shared

Shared

Action
Actionclass
ShowShow
idint
optional

A unique numeric ID that can be used to identify and reference an action.

completed_atdatetime
optional

A time value given in ISO8601 combined date and time format that represents when the action was completed.

formatdate-time
regionRegion
optional
region_slugstr
optional

A human-readable string that is used as a unique identifier for each region.

resource_idint
optional

A unique identifier for the resource that the action is associated with.

resource_typestr
optional

The type of resource that the action is associated with.

started_atdatetime
optional

A time value given in ISO8601 combined date and time format that represents when the action was initiated.

formatdate-time
statusliteral
optional
Optional[Literal["in-progress", "completed", "errored"]]

The current status of the action. This can be "in-progress", "completed", or "errored".

Hide ParametersShow Parameters
"in-progress"
"completed"
"errored"
typestr
optional

This is the type of action that the object represents. For example, this could be "transfer" to represent the state of an image transfer action.

Action Link
ActionLinkclass

The linked actions can be used to check the status of a Droplet's create event.

ShowShow
API Links
APILinksclass

Links to other pages

ShowShow
API Meta
APIMetaclass

Meta information about the data set

ShowShow
pageint
optional

The current page

formatint64
pagesint
optional

Total number of pages

formatint64
totalint
optional

Total amount of items over all pages

formatint64
Backward Links
BackwardLinksclass
ShowShow
Chat Completion Chunk
ChatCompletionChunkclass

Represents a streamed chunk of a chat completion response returned by the model, based on the provided input.

ShowShow
idstr

A unique identifier for the chat completion. Each chunk has the same ID.

choiceslist
List[Choice]

A list of chat completion choices. Can contain more than one elements if n is greater than 1. Can also be empty for the last chunk if you set stream_options: {"include_usage": true}.

Hide ParametersShow Parameters
deltacontentstrrefusalstrroleliteraltool_callslistChoiceDelta

A chat completion delta generated by streamed model responses.

Hide ParametersShow Parameters
contentstr
optional

The contents of the chunk message.

refusalstr
optional

The refusal message generated by the model.

roleliteral
optional
Optional[Literal["developer", "user", "assistant"]]

The role of the author of this message.

Hide ParametersShow Parameters
"developer"
"user"
"assistant"
tool_callslist
optional
Optional[List[ChoiceDeltaToolCall]]
Hide ParametersShow Parameters
indexint
idstr
optional

The ID of the tool call.

functionargumentsstrnamestrChoiceDeltaToolCallFunction
optional

A chunk of a function that the model called.

Hide ParametersShow Parameters
argumentsstr
optional

The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.

namestr
optional

The name of the function to call.

typeliteral
optional
Optional[Literal["function"]]

The type of the tool. Currently, only function is supported.

Hide ParametersShow Parameters
"function"
finish_reasonliteral
Optional[Literal["stop", "length", "tool_calls"]]

The reason the model stopped generating tokens. This will be stop if the model hit a natural stop point or a provided stop sequence, or length if the maximum number of tokens specified in the request was reached, tool_calls if the model called a tool.

Hide ParametersShow Parameters
"stop"
"length"
"tool_calls"
indexint

The index of the choice in the list of choices.

logprobscontentlistrefusallistChoiceLogprobs
optional

Log probability information for the choice.

Hide ParametersShow Parameters
contentlist
Optional[List[tokenstrbyteslistlogprobfloattop_logprobslistChatCompletionTokenLogprob]]

A list of message content tokens with log probability information.

Hide ParametersShow Parameters
tokenstr

The token.

byteslist
Optional[List[int]]

A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be null if there is no bytes representation for the token.

logprobfloat

The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value -9999.0 is used to signify that the token is very unlikely.

top_logprobslist

List of the most likely tokens and their log probability, at this token position. In rare cases, there may be fewer than the number of requested top_logprobs returned.

Hide ParametersShow Parameters
tokenstr

The token.

byteslist
Optional[List[int]]

A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be null if there is no bytes representation for the token.

logprobfloat

The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value -9999.0 is used to signify that the token is very unlikely.

refusallist
Optional[List[tokenstrbyteslistlogprobfloattop_logprobslistChatCompletionTokenLogprob]]

A list of message refusal tokens with log probability information.

Hide ParametersShow Parameters
tokenstr

The token.

byteslist
Optional[List[int]]

A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be null if there is no bytes representation for the token.

logprobfloat

The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value -9999.0 is used to signify that the token is very unlikely.

top_logprobslist

List of the most likely tokens and their log probability, at this token position. In rare cases, there may be fewer than the number of requested top_logprobs returned.

Hide ParametersShow Parameters
tokenstr

The token.

byteslist
Optional[List[int]]

A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be null if there is no bytes representation for the token.

logprobfloat

The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value -9999.0 is used to signify that the token is very unlikely.

createdint

The Unix timestamp (in seconds) of when the chat completion was created. Each chunk has the same timestamp.

modelstr

The model to generate the completion.

objectliteral
Literal["chat.completion.chunk"]

The object type, which is always chat.completion.chunk.

Hide ParametersShow Parameters
"chat.completion.chunk"
usageCompletionUsage
optional

An optional field that will only be present when you set stream_options: {"include_usage": true} in your request. When present, it contains a null value except for the last chunk which contains the token usage statistics for the entire request.

NOTE: If the stream is interrupted or cancelled, you may not receive the final usage chunk which contains the total token usage for the request.

Chat Completion Token Logprob
ChatCompletionTokenLogprobclass
ShowShow
tokenstr

The token.

byteslist
Optional[List[int]]

A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be null if there is no bytes representation for the token.

logprobfloat

The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value -9999.0 is used to signify that the token is very unlikely.

top_logprobslist

List of the most likely tokens and their log probability, at this token position. In rare cases, there may be fewer than the number of requested top_logprobs returned.

Hide ParametersShow Parameters
tokenstr

The token.

byteslist
Optional[List[int]]

A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be null if there is no bytes representation for the token.

logprobfloat

The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value -9999.0 is used to signify that the token is very unlikely.

Completion Usage
CompletionUsageclass

Usage statistics for the completion request.

ShowShow
completion_tokensint

Number of tokens in the generated completion.

prompt_tokensint

Number of tokens in the prompt.

total_tokensint

Total number of tokens used in the request (prompt + completion).

Disk Info
DiskInfoclass
ShowShow
sizeamountintunitstrSize
optional
Hide ParametersShow Parameters
amountint
optional

The amount of space allocated to the disk.

unitstr
optional

The unit of measure for the disk size.

typeliteral
optional
Optional[Literal["local", "scratch"]]

The type of disk. All Droplets contain a local disk. Additionally, GPU Droplets can also have a scratch disk for non-persistent data.

Hide ParametersShow Parameters
"local"
"scratch"
Droplet
Dropletclass
ShowShow
idint

A unique identifier for each Droplet instance. This is automatically generated upon Droplet creation.

backup_idslist
List[int]

An array of backup IDs of any backups that have been taken of the Droplet instance. Droplet backups are enabled at the time of the instance creation.
Requires image:read scope.

created_atdatetime

A time value given in ISO8601 combined date and time format that represents when the Droplet was created.

formatdate-time
diskint

The size of the Droplet's disk in gigabytes.

featureslist
List[str]

An array of features enabled on this Droplet.

imageidintcreated_atdatetimedescriptionstrdistributionliteralerror_messagestrmin_disk_sizeintnamestrpublicboolregionslistsize_gigabytesfloatslugstrstatusliteraltagslisttypeliteralImage

The Droplet's image.
Requires image:read scope.

lockedbool

A boolean value indicating whether the Droplet has been locked, preventing actions by users.

memoryint

Memory of the Droplet in megabytes.

multipleOf8
namestr

The human-readable name set for the Droplet instance.

networksv4listv6listNetworks

The details of the network that are configured for the Droplet instance. This is an object that contains keys for IPv4 and IPv6. The value of each of these is an array that contains objects describing an individual IP resource allocated to the Droplet. These will define attributes like the IP address, netmask, and gateway of the specific network depending on the type of network it is.

Hide ParametersShow Parameters
v4list
optional
Optional[List[gatewaystrip_addressstrnetmaskstrtypeliteralNetworkV4]]
Hide ParametersShow Parameters
gatewaystr
optional

The gateway of the specified IPv4 network interface.

For private interfaces, a gateway is not provided. This is denoted by returning nil as its value.

ip_addressstr
optional

The IP address of the IPv4 network interface.

formatipv4
netmaskstr
optional

The netmask of the IPv4 network interface.

formatipv4
typeliteral
optional
Optional[Literal["public", "private"]]

The type of the IPv4 network interface.

Hide ParametersShow Parameters
"public"
"private"
v6list
optional
Optional[List[gatewaystrip_addressstrnetmaskinttypeliteralNetworkV6]]
Hide ParametersShow Parameters
gatewaystr
optional

The gateway of the specified IPv6 network interface.

formatipv6
ip_addressstr
optional

The IP address of the IPv6 network interface.

formatipv6
netmaskint
optional

The netmask of the IPv6 network interface.

typeliteral
optional
Optional[Literal["public"]]

The type of the IPv6 network interface.

Note: IPv6 private networking is not currently supported.

Hide ParametersShow Parameters
"public"
next_backup_windowDropletNextBackupWindow

The details of the Droplet's backups feature, if backups are configured for the Droplet. This object contains keys for the start and end times of the window during which the backup will start.

regionavailableboolfeatureslistnamestrsizeslistslugstrRegion
sizeavailablebooldescriptionstrdiskintmemoryintprice_hourlyfloatprice_monthlyfloatregionslistslugstrtransferfloatvcpusintdisk_infolistgpu_infoGPUInfoSize
size_slugstr

The unique slug identifier for the size of this Droplet.

snapshot_idslist
List[int]

An array of snapshot IDs of any snapshots created from the Droplet instance.
Requires image:read scope.

statusliteral
Literal["new", "active", "off", "archive"]

A status string indicating the state of the Droplet instance. This may be "new", "active", "off", or "archive".

Hide ParametersShow Parameters
"new"
"active"
"off"
"archive"
tagslist
List[str]

An array of Tags the Droplet has been tagged with.
Requires tag:read scope.

vcpusint

The number of virtual CPUs.

volume_idslist
List[str]

A flat array including the unique identifier for each Block Storage volume attached to the Droplet.
Requires block_storage:read scope.

disk_infolist
optional
Optional[List[sizeSizetypeliteralDiskInfo]]

An array of objects containing information about the disks available to the Droplet.

Hide ParametersShow Parameters
sizeamountintunitstrSize
optional
Hide ParametersShow Parameters
amountint
optional

The amount of space allocated to the disk.

unitstr
optional

The unit of measure for the disk size.

typeliteral
optional
Optional[Literal["local", "scratch"]]

The type of disk. All Droplets contain a local disk. Additionally, GPU Droplets can also have a scratch disk for non-persistent data.

Hide ParametersShow Parameters
"local"
"scratch"
gpu_infoGPUInfo
optional

An object containing information about the GPU capabilities of Droplets created with this size.

kernelKernel
optional
deprecated

Note: All Droplets created after March 2017 use internal kernels by default. These Droplets will have this attribute set to null.

The current kernel for Droplets with externally managed kernels. This will initially be set to the kernel of the base image when the Droplet is created.

vpc_uuidstr
optional

A string specifying the UUID of the VPC to which the Droplet is assigned.
Requires vpc:read scope.

Droplet Next Backup Window
DropletNextBackupWindowclass
ShowShow
enddatetime
optional

A time value given in ISO8601 combined date and time format specifying the end of the Droplet's backup window.

formatdate-time
startdatetime
optional

A time value given in ISO8601 combined date and time format specifying the start of the Droplet's backup window.

formatdate-time
Firewall Rule Target
FirewallRuleTargetclass
ShowShow
addresseslist
optional
Optional[List[str]]

An array of strings containing the IPv4 addresses, IPv6 addresses, IPv4 CIDRs, and/or IPv6 CIDRs to which the firewall will allow traffic.

droplet_idslist
optional
Optional[List[int]]

An array containing the IDs of the Droplets to which the firewall will allow traffic.

kubernetes_idslist
optional
Optional[List[str]]

An array containing the IDs of the Kubernetes clusters to which the firewall will allow traffic.

load_balancer_uidslist
optional
Optional[List[str]]

An array containing the IDs of the load balancers to which the firewall will allow traffic.

tagslist
optional
Optional[List[str]]

A flat array of tag names as strings to be applied to the resource. Tag names must exist in order to be referenced in a request.

Requires tag:create and tag:read scopes.

Forward Links
ForwardLinksclass
ShowShow
Garbage Collection
GarbageCollectionclass
ShowShow
blobs_deletedint
optional

The number of blobs deleted as a result of this garbage collection.

created_atdatetime
optional

The time the garbage collection was created.

formatdate-time
freed_bytesint
optional

The number of bytes freed as a result of this garbage collection.

registry_namestr
optional

The name of the container registry.

statusliteral
optional
Optional[Literal["requested", "waiting for write JWTs to expire", "scanning manifests", 5 more]]

The current status of this garbage collection.

Hide ParametersShow Parameters
"requested"
"waiting for write JWTs to expire"
"scanning manifests"
"deleting unreferenced blobs"
"cancelling"
"failed"
"succeeded"
"cancelled"
updated_atdatetime
optional

The time the garbage collection was last updated.

formatdate-time
uuidstr
optional

A string specifying the UUID of the garbage collection.

GPU Info
GPUInfoclass

An object containing information about the GPU capabilities of Droplets created with this size.

ShowShow
countint
optional

The number of GPUs allocated to the Droplet.

modelstr
optional

The model of the GPU.

vramamountintunitstrVram
optional
Hide ParametersShow Parameters
amountint
optional

The amount of VRAM allocated to the GPU.

unitstr
optional

The unit of measure for the VRAM.

Image
Imageclass
ShowShow
idint
optional

A unique number that can be used to identify and reference a specific image.

created_atdatetime
optional

A time value given in ISO8601 combined date and time format that represents when the image was created.

formatdate-time
descriptionstr
optional

An optional free-form text field to describe an image.

distributionliteral
optional
Optional[Literal["Arch Linux", "CentOS", "CoreOS", 10 more]]

The name of a custom image's distribution. Currently, the valid values are Arch Linux, CentOS, CoreOS, Debian, Fedora, Fedora Atomic, FreeBSD, Gentoo, openSUSE, RancherOS, Rocky Linux, Ubuntu, and Unknown. Any other value will be accepted but ignored, and Unknown will be used in its place.

Hide ParametersShow Parameters
"Arch Linux"
"CentOS"
"CoreOS"
"Debian"
"Fedora"
"Fedora Atomic"
"FreeBSD"
"Gentoo"
"openSUSE"
"RancherOS"
"Rocky Linux"
"Ubuntu"
"Unknown"
error_messagestr
optional

A string containing information about errors that may occur when importing a custom image.

min_disk_sizeint
optional

The minimum disk size in GB required for a Droplet to use this image.

minimum0
namestr
optional

The display name that has been given to an image. This is what is shown in the control panel and is generally a descriptive title for the image in question.

publicbool
optional

This is a boolean value that indicates whether the image in question is public or not. An image that is public is available to all accounts. A non-public image is only accessible from your account.

regionslist
optional
Optional[List[Literal["ams1", "ams2", "ams3", 12 more]]]

This attribute is an array of the regions that the image is available in. The regions are represented by their identifying slug values.

Hide ParametersShow Parameters
"ams1"
"ams2"
"ams3"
"blr1"
"fra1"
"lon1"
"nyc1"
"nyc2"
"nyc3"
"sfo1"
"sfo2"
"sfo3"
"sgp1"
"tor1"
"syd1"
size_gigabytesfloat
optional

The size of the image in gigabytes.

formatfloat
slugstr
optional

A uniquely identifying string that is associated with each of the DigitalOcean-provided public images. These can be used to reference a public image as an alternative to the numeric id.

statusliteral
optional
Optional[Literal["NEW", "available", "pending", 2 more]]

A status string indicating the state of a custom image. This may be NEW, available, pending, deleted, or retired.

Hide ParametersShow Parameters
"NEW"
"available"
"pending"
"deleted"
"retired"
tagslist
optional
Optional[List[str]]

A flat array of tag names as strings to be applied to the resource. Tag names may be for either existing or new tags.

Requires tag:create scope.

typeliteral
optional
Optional[Literal["base", "snapshot", "backup", 2 more]]

Describes the kind of image. It may be one of base, snapshot, backup, custom, or admin. Respectively, this specifies whether an image is a DigitalOcean base OS image, user-generated Droplet snapshot, automatically created Droplet backup, user-provided virtual machine image, or an image used for DigitalOcean managed resources (e.g. DOKS worker nodes).

Hide ParametersShow Parameters
"base"
"snapshot"
"backup"
"custom"
"admin"
Kernel
Kernelclass

Note: All Droplets created after March 2017 use internal kernels by default. These Droplets will have this attribute set to null.

The current kernel for Droplets with externally managed kernels. This will initially be set to the kernel of the base image when the Droplet is created.

ShowShow
idint
optional

A unique number used to identify and reference a specific kernel.

namestr
optional

The display name of the kernel. This is shown in the web UI and is generally a descriptive title for the kernel in question.

versionstr
optional

A standard kernel version string representing the version, patch, and release information.

Meta Properties
MetaPropertiesclass

Information about the response itself.

ShowShow
totalint
optional

Number of objects returned by the request.

Network V4
NetworkV4class
ShowShow
gatewaystr
optional

The gateway of the specified IPv4 network interface.

For private interfaces, a gateway is not provided. This is denoted by returning nil as its value.

ip_addressstr
optional

The IP address of the IPv4 network interface.

formatipv4
netmaskstr
optional

The netmask of the IPv4 network interface.

formatipv4
typeliteral
optional
Optional[Literal["public", "private"]]

The type of the IPv4 network interface.

Hide ParametersShow Parameters
"public"
"private"
Network V6
NetworkV6class
ShowShow
gatewaystr
optional

The gateway of the specified IPv6 network interface.

formatipv6
ip_addressstr
optional

The IP address of the IPv6 network interface.

formatipv6
netmaskint
optional

The netmask of the IPv6 network interface.

typeliteral
optional
Optional[Literal["public"]]

The type of the IPv6 network interface.

Note: IPv6 private networking is not currently supported.

Hide ParametersShow Parameters
"public"
Page Links
PageLinksclass
ShowShow
Region
Regionclass
ShowShow
availablebool

This is a boolean value that represents whether new Droplets can be created in this region.

featureslist
List[str]

This attribute is set to an array which contains features available in this region

namestr

The display name of the region. This will be a full name that is used in the control panel and other interfaces.

sizeslist
List[str]

This attribute is set to an array which contains the identifying slugs for the sizes available in this region. sizes:read is required to view.

slugstr

A human-readable string that is used as a unique identifier for each region.

Size
Sizeclass
ShowShow
availablebool

This is a boolean value that represents whether new Droplets can be created with this size.

descriptionstr

A string describing the class of Droplets created from this size. For example: Basic, General Purpose, CPU-Optimized, Memory-Optimized, or Storage-Optimized.

diskint

The amount of disk space set aside for Droplets of this size. The value is represented in gigabytes.

memoryint

The amount of RAM allocated to Droplets created of this size. The value is represented in megabytes.

multipleOf8
minimum8
price_hourlyfloat

This describes the price of the Droplet size as measured hourly. The value is measured in US dollars.

formatfloat
price_monthlyfloat

This attribute describes the monthly cost of this Droplet size if the Droplet is kept for an entire month. The value is measured in US dollars.

formatfloat
regionslist
List[str]

An array containing the region slugs where this size is available for Droplet creates. regions:read is required to view.

slugstr

A human-readable string that is used to uniquely identify each size.

transferfloat

The amount of transfer bandwidth that is available for Droplets created in this size. This only counts traffic on the public interface. The value is given in terabytes.

formatfloat
vcpusint

The number of CPUs allocated to Droplets of this size.

disk_infolist
optional
Optional[List[sizeSizetypeliteralDiskInfo]]

An array of objects containing information about the disks available to Droplets created with this size.

Hide ParametersShow Parameters
sizeamountintunitstrSize
optional
Hide ParametersShow Parameters
amountint
optional

The amount of space allocated to the disk.

unitstr
optional

The unit of measure for the disk size.

typeliteral
optional
Optional[Literal["local", "scratch"]]

The type of disk. All Droplets contain a local disk. Additionally, GPU Droplets can also have a scratch disk for non-persistent data.

Hide ParametersShow Parameters
"local"
"scratch"
gpu_infoGPUInfo
optional

An object containing information about the GPU capabilities of Droplets created with this size.

Snapshots
Snapshotsclass
ShowShow
idstr

The unique identifier for the snapshot.

created_atdatetime

A time value given in ISO8601 combined date and time format that represents when the snapshot was created.

formatdate-time
min_disk_sizeint

The minimum size in GB required for a volume or Droplet to use this snapshot.

namestr

A human-readable name for the snapshot.

regionslist
List[str]

An array of the regions that the snapshot is available in. The regions are represented by their identifying slug values.

resource_idstr

The unique identifier for the resource that the snapshot originated from.

resource_typeliteral
Literal["droplet", "volume"]

The type of resource that the snapshot originated from.

Hide ParametersShow Parameters
"droplet"
"volume"
size_gigabytesfloat

The billable size of the snapshot in gigabytes.

formatfloat
tagslist
Optional[List[str]]

An array of Tags the snapshot has been tagged with.

Requires tag:read scope.

Subscription
Subscriptionclass
ShowShow
created_atdatetime
optional

The time at which the subscription was created.

formatdate-time
tierSubscriptionTierBase
optional
updated_atdatetime
optional

The time at which the subscription was last updated.

formatdate-time
Subscription Tier Base
SubscriptionTierBaseclass
ShowShow
allow_storage_overagebool
optional

A boolean indicating whether the subscription tier supports additional storage above what is included in the base plan at an additional cost per GiB used.

included_bandwidth_bytesint
optional

The amount of outbound data transfer included in the subscription tier in bytes.

included_repositoriesint
optional

The number of repositories included in the subscription tier. 0 indicates that the subscription tier includes unlimited repositories.

included_storage_bytesint
optional

The amount of storage included in the subscription tier in bytes.

monthly_price_in_centsint
optional

The monthly cost of the subscription tier in cents.

namestr
optional

The name of the subscription tier.

slugstr
optional

The slug identifier of the subscription tier.

storage_overage_price_in_centsint
optional

The price paid in cents per GiB for additional storage beyond what is included in the subscription plan.

Vpc Peering
VpcPeeringclass
ShowShow
idstr
optional

A unique ID that can be used to identify and reference the VPC peering.

formatuuid
created_atdatetime
optional

A time value given in ISO8601 combined date and time format.

formatdate-time
namestr
optional

The name of the VPC peering. Must be unique within the team and may only contain alphanumeric characters and dashes.

statusliteral
optional
Optional[Literal["PROVISIONING", "ACTIVE", "DELETING"]]

The current status of the VPC peering.

Hide ParametersShow Parameters
"PROVISIONING"
"ACTIVE"
"DELETING"
vpc_idslist
optional
Optional[List[str]]

An array of the two peered VPCs IDs.