Enviornments

CreateEnvironment

post

Creates a new environment

Authorizations
Path parameters
modestringRequired
Body
namestringRequiredExample: env12
Responses
200
Created environment
application/json
Responseall of
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"
}

ListEnvironments

get

Retrieves a list of all environments

Authorizations
Path parameters
modestringRequired
Responses
200
List of environments
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"
    }
  ]
}

GetEnvironment

get

Retrieves details of a specific environment

Authorizations
Path parameters
modestringRequired
environmentUUIDstring · uuidRequired
Responses
200
Environment details
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"
}

DeleteEnvironment

delete

Deletes a specific environment

Authorizations
Path parameters
modestringRequired
environmentUUIDstring · uuidRequired
Responses
200
Environment deleted successfully
application/json
Responseobject
delete
DELETE /{mode}/v1/environments/{environmentUUID} HTTP/1.1
Host: api.tasknet.co
X-Api-Key: YOUR_API_KEY
Accept: */*
{}

Last updated