Create
# HTTP request:
https://api.paperspace.io
POST /machines/createSingleMachinePublic {"region": "East Coast (NY2)", "machineType": "Air", "size": 50, "billingType": "monthly", "machineName": "My Machine 1", "templateId": "t123abc", "assignPublicIp": true, "networkId": "n123abc", "teamId": "te456def", "email": "example@example.com", "password": "secret123", "firstName": "Jon", "lastName": "Snow", "notificationEmail": "example@example.com"}
x-api-key: 1ba4f98e7c0...
# Returns 201 on successpaperspace.machines.create({
region: 'East Coast (NY2)',
machineType: 'Air',
size: 50,
billingType: 'hourly',
machineName: 'My Machine 1',
templateId: 't123abc',
assignPublicIp: true, // optional - assign a new public ip address
networkId: 'n123abc', // optional - only if creating on a specific network
teamId: 'te456def', // optional - required if creating this machine for a team
email: 'example@example.com', // optional - if creating a new user
password: 'secret123', // optional - if creating a new user
firstName: 'Jon', // optional - if creating a new user
lastName: 'Snow', // optional - if creating a new user
notificationEmail: 'example@example.com', // optional - address to send a notification when complete
scriptId: 'sc123abc', // optional - a script to be run on startup
}, function(err, res) {
// handle error or result
});Last updated