Skip to main content
POST
/
volumes
cURL
curl --request POST \
  --url https://api.e2b.app/volumes \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "name": "<string>"
}
'
{
  "volumeID": "<string>",
  "name": "<string>",
  "token": "<string>"
}

Authorizations

X-API-Key
string
header
required

Body

application/json
name
string
required

Name of the volume

Pattern: ^[a-zA-Z0-9_-]+$

Response

Successfully created a new team volume

volumeID
string
required

ID of the volume

name
string
required

Name of the volume

token
string
required

Auth token to use for interacting with volume content