Enviornments
Creates a new environment
Authorizations
Path parameters
modestringRequired
Body
namestringRequiredExample:
env12
Responses
200
Created environment
application/json
Responseall of
400
Bad Request
application/json
401
Unauthorized
application/json
404
Not Found
application/json
500
Internal Server Error
application/json
post
POST /{mode}/v1/environments HTTP/1.1
Host: api.tasknet.co
X-Api-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 16
{
"name": "env12"
}
{
"environmentUUID": "ee71bea6-84b9-4baa-8d1b-8d8710c4079a",
"name": "Dev",
"publicKey": "-----BEGIN PUBLIC KEY-----\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAwXSEF7IZ3+OIQZEnZugN...",
"createdAt": "2025-01-30T05:42:00.303Z",
"envSecret": "b05ce9192be2b8830bae66a93baff272c752bc30983eae5001a8e73d9fb4c72e"
}
Retrieves a list of all environments
Authorizations
Path parameters
modestringRequired
Responses
200
List of environments
application/json
400
Bad Request
application/json
401
Unauthorized
application/json
404
Not Found
application/json
500
Internal Server Error
application/json
get
GET /{mode}/v1/environments HTTP/1.1
Host: api.tasknet.co
X-Api-Key: YOUR_API_KEY
Accept: */*
{
"environments": [
{
"environmentUUID": "ee71bea6-84b9-4baa-8d1b-8d8710c4079a",
"name": "Dev",
"publicKey": "-----BEGIN PUBLIC KEY-----\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAwXSEF7IZ3+OIQZEnZugN...",
"createdAt": "2025-01-30T05:42:00.303Z"
}
]
}
Retrieves details of a specific environment
Authorizations
Path parameters
modestringRequired
environmentUUIDstring · uuidRequired
Responses
200
Environment details
application/json
400
Bad Request
application/json
401
Unauthorized
application/json
404
Not Found
application/json
500
Internal Server Error
application/json
get
GET /{mode}/v1/environments/{environmentUUID} HTTP/1.1
Host: api.tasknet.co
X-Api-Key: YOUR_API_KEY
Accept: */*
{
"environmentUUID": "ee71bea6-84b9-4baa-8d1b-8d8710c4079a",
"name": "Dev",
"publicKey": "-----BEGIN PUBLIC KEY-----\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAwXSEF7IZ3+OIQZEnZugN...",
"createdAt": "2025-01-30T05:42:00.303Z"
}
Deletes a specific environment
Authorizations
Path parameters
modestringRequired
environmentUUIDstring · uuidRequired
Responses
200
Environment deleted successfully
application/json
Responseobject
400
Bad Request
application/json
401
Unauthorized
application/json
404
Not Found
application/json
500
Internal Server Error
application/json
delete
DELETE /{mode}/v1/environments/{environmentUUID} HTTP/1.1
Host: api.tasknet.co
X-Api-Key: YOUR_API_KEY
Accept: */*
{}
Last updated