Startup Scripts

Generated on 18 Mar 2026

Base URL https://api.paperspace.com/v1

GET List startup scripts

/startup-scripts
Authorizations: BearerAuth
Http: Bearer

An API key or access token

Fetches a list of startup scripts.

Query Parameters

after string optional

Fetch the next page of results after this cursor.

limit integer 1 – 120 optional

The number of items to fetch after this page.

orderBy string, one of: dtCreated, name optional

Order results by one of these fields.

Default: dtCreated
order string, one of: asc, desc optional

The order to sort the results by.

Default: desc
name string optional
curl -X GET \
  -H "Authorization: Bearer $API_TOKEN" \
  "https://api.paperspace.com/v1/startup-scripts"

Responses

200

Successful response

hasMore boolean required

Whether there are more pages of results available.

items array of object required

The items on this page.

Show child properties
assignedMachineIds array of string required

The IDs of the machines the startup script is assigned to.

description string required Nullable

The description of the startup script.

dtCreated string (date-time) required

The date the startup script was created.

dtDeleted string (date-time) required Nullable

The date the startup script was deleted.

id string required

The ID of the startup script.

isEnabled boolean required

Whether the startup script is enabled.

isRunOnce boolean required

Whether the startup script is run once on first boot or on every boot.

name string required

The name of the startup script.

nextPage string optional

The cursor required to fetch the next page of results. i.e. ?after=nextPage. This is null when there is no next page.

default

Error response

code string required
details object optional
message string required
{
  "hasMore": true,
  "items": [
    {
      "assignedMachineIds": [],
      "description": "string",
      "dtCreated": "2019-08-24T14:15:22Z",
      "dtDeleted": "2019-08-24T14:15:22Z",
      "id": "string",
      "isEnabled": true,
      "isRunOnce": true,
      "name": "string"
    }
  ],
  "nextPage": "string"
}
{
  "code": "string",
  "message": "string"
}

POST Create startup script

/startup-scripts
Authorizations: BearerAuth
Http: Bearer

An API key or access token

Create a startup script.

Request Body: application/json

isRunOnce boolean optional

Whether the script should only run once on first boot or on every boot.

name string required

The name of the startup script.

script string required

The script to run on startup.

Content type application/json
{
  "isRunOnce": false,
  "name": "string",
  "script": "string"
}
curl -X POST \
  -H "Authorization: Bearer $API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "isRunOnce": false,
  "name": "string",
  "script": "string"
}' \
  "https://api.paperspace.com/v1/startup-scripts"

Responses

200

Successful response

assignedMachineIds array of string required

The IDs of the machines the startup script is assigned to.

description string required Nullable

The description of the startup script.

dtCreated string (date-time) required

The date the startup script was created.

dtDeleted string (date-time) required Nullable

The date the startup script was deleted.

id string required

The ID of the startup script.

isEnabled boolean required

Whether the startup script is enabled.

isRunOnce boolean required

Whether the startup script is run once on first boot or on every boot.

name string required

The name of the startup script.

default

Error response

code string required
details object optional
message string required
{
  "assignedMachineIds": [
    "string"
  ],
  "description": "string",
  "dtCreated": "2019-08-24T14:15:22Z",
  "dtDeleted": "2019-08-24T14:15:22Z",
  "id": "string",
  "isEnabled": true,
  "isRunOnce": true,
  "name": "string"
}
{
  "code": "string",
  "message": "string"
}

GET Get a startup script

/startup-scripts/{id}
Authorizations: BearerAuth
Http: Bearer

An API key or access token

Fetches a single startup script by ID.

Path Parameters

id string required

The ID of the startup script to fetch.

curl -X GET \
  -H "Authorization: Bearer $API_TOKEN" \
  "https://api.paperspace.com/v1/startup-scripts/{id}"

Responses

200

Successful response

assignedMachineIds array of string required

The IDs of the machines the startup script is assigned to.

description string required Nullable

The description of the startup script.

dtCreated string (date-time) required

The date the startup script was created.

dtDeleted string (date-time) required Nullable

The date the startup script was deleted.

id string required

The ID of the startup script.

isEnabled boolean required

Whether the startup script is enabled.

isRunOnce boolean required

Whether the startup script is run once on first boot or on every boot.

name string required

The name of the startup script.

default

Error response

code string required
details object optional
message string required
{
  "assignedMachineIds": [
    "string"
  ],
  "description": "string",
  "dtCreated": "2019-08-24T14:15:22Z",
  "dtDeleted": "2019-08-24T14:15:22Z",
  "id": "string",
  "isEnabled": true,
  "isRunOnce": true,
  "name": "string"
}
{
  "code": "string",
  "message": "string"
}

PUT Update startup script

/startup-scripts/{id}
Authorizations: BearerAuth
Http: Bearer

An API key or access token

Update a startup script.

Path Parameters

id string required

The id of the startup script.

Request Body: application/json

isEnabled boolean optional

Whether the startup script is enabled.

isRunOnce boolean optional

Whether the script should only run once on first boot or on every boot.

name string optional

The name of the startup script.

script string optional

The script to run on startup.

Content type application/json
{
  "isEnabled": true,
  "isRunOnce": true,
  "name": "string",
  "script": "string"
}
curl -X PUT \
  -H "Authorization: Bearer $API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "isEnabled": true,
  "isRunOnce": true,
  "name": "string",
  "script": "string"
}' \
  "https://api.paperspace.com/v1/startup-scripts/{id}"

Responses

200

Successful response

assignedMachineIds array of string required

The IDs of the machines the startup script is assigned to.

description string required Nullable

The description of the startup script.

dtCreated string (date-time) required

The date the startup script was created.

dtDeleted string (date-time) required Nullable

The date the startup script was deleted.

id string required

The ID of the startup script.

isEnabled boolean required

Whether the startup script is enabled.

isRunOnce boolean required

Whether the startup script is run once on first boot or on every boot.

name string required

The name of the startup script.

default

Error response

code string required
details object optional
message string required
{
  "assignedMachineIds": [
    "string"
  ],
  "description": "string",
  "dtCreated": "2019-08-24T14:15:22Z",
  "dtDeleted": "2019-08-24T14:15:22Z",
  "id": "string",
  "isEnabled": true,
  "isRunOnce": true,
  "name": "string"
}
{
  "code": "string",
  "message": "string"
}

DELETE Delete startup script

/startup-scripts/{id}
Authorizations: BearerAuth
Http: Bearer

An API key or access token

Delete a startup script.

Path Parameters

id string required

The id of the startup script.

curl -X DELETE \
  -H "Authorization: Bearer $API_TOKEN" \
  "https://api.paperspace.com/v1/startup-scripts/{id}"

Responses

200

Successful response

assignedMachineIds array of string required

The IDs of the machines the startup script is assigned to.

description string required Nullable

The description of the startup script.

dtCreated string (date-time) required

The date the startup script was created.

dtDeleted string (date-time) required Nullable

The date the startup script was deleted.

id string required

The ID of the startup script.

isEnabled boolean required

Whether the startup script is enabled.

isRunOnce boolean required

Whether the startup script is run once on first boot or on every boot.

name string required

The name of the startup script.

default

Error response

code string required
details object optional
message string required
{
  "assignedMachineIds": [
    "string"
  ],
  "description": "string",
  "dtCreated": "2019-08-24T14:15:22Z",
  "dtDeleted": "2019-08-24T14:15:22Z",
  "id": "string",
  "isEnabled": true,
  "isRunOnce": true,
  "name": "string"
}
{
  "code": "string",
  "message": "string"
}

POST Assign startup script to machine

/startup-scripts/{id}/assign
Authorizations: BearerAuth
Http: Bearer

An API key or access token

Assign a startup script to a machine.

Path Parameters

id string required

The id of the startup script.

Request Body: application/json

machineId string required

The id of the machine to assign the startup script to.

Content type application/json
{
  "machineId": "string"
}
curl -X POST \
  -H "Authorization: Bearer $API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "machineId": "string"
}' \
  "https://api.paperspace.com/v1/startup-scripts/{id}/assign"

Responses

200

Successful response

assignedMachineIds array of string required

The IDs of the machines the startup script is assigned to.

description string required Nullable

The description of the startup script.

dtCreated string (date-time) required

The date the startup script was created.

dtDeleted string (date-time) required Nullable

The date the startup script was deleted.

id string required

The ID of the startup script.

isEnabled boolean required

Whether the startup script is enabled.

isRunOnce boolean required

Whether the startup script is run once on first boot or on every boot.

name string required

The name of the startup script.

default

Error response

code string required
details object optional
message string required
{
  "assignedMachineIds": [
    "string"
  ],
  "description": "string",
  "dtCreated": "2019-08-24T14:15:22Z",
  "dtDeleted": "2019-08-24T14:15:22Z",
  "id": "string",
  "isEnabled": true,
  "isRunOnce": true,
  "name": "string"
}
{
  "code": "string",
  "message": "string"
}

POST Unassign startup script from machine

/startup-scripts/{id}/unassign
Authorizations: BearerAuth
Http: Bearer

An API key or access token

Unassign a startup script from a machine.

Path Parameters

id string required

The id of the startup script.

Request Body: application/json

machineId string required

The id of the machine to unassign the startup script from.

Content type application/json
{
  "machineId": "string"
}
curl -X POST \
  -H "Authorization: Bearer $API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "machineId": "string"
}' \
  "https://api.paperspace.com/v1/startup-scripts/{id}/unassign"

Responses

200

Successful response

assignedMachineIds array of string required

The IDs of the machines the startup script is assigned to.

description string required Nullable

The description of the startup script.

dtCreated string (date-time) required

The date the startup script was created.

dtDeleted string (date-time) required Nullable

The date the startup script was deleted.

id string required

The ID of the startup script.

isEnabled boolean required

Whether the startup script is enabled.

isRunOnce boolean required

Whether the startup script is run once on first boot or on every boot.

name string required

The name of the startup script.

default

Error response

code string required
details object optional
message string required
{
  "assignedMachineIds": [
    "string"
  ],
  "description": "string",
  "dtCreated": "2019-08-24T14:15:22Z",
  "dtDeleted": "2019-08-24T14:15:22Z",
  "id": "string",
  "isEnabled": true,
  "isRunOnce": true,
  "name": "string"
}
{
  "code": "string",
  "message": "string"
}

We can't find any results for your search.

Try using different keywords or simplifying your search terms.