# Profiles

Reusable workload profiles: environment, inbox, domain filter and secret injection settings

Source: https://slashinfra.com/docs/api-reference/control/profiles
Last modified: 2026-11-30T16:36:19.000Z

Reusable workload profiles: environment, inbox, domain filter and secret injection settings

Resource, request and plan limits are listed on [Limits](https://slashinfra.com/docs/reference/limits).

[Download OpenAPI specification](https://slashinfra.com/docs/control.openapi.json) · Version 0.1.0

[GETList workload profiles](https://slashinfra.com/docs/api-reference/control/profiles#getProfiles)[POSTCreate a workload profile](https://slashinfra.com/docs/api-reference/control/profiles#postProfiles)[DELETEDelete a workload profile](https://slashinfra.com/docs/api-reference/control/profiles#deleteProfilesByRef)[GETGet a workload profile](https://slashinfra.com/docs/api-reference/control/profiles#getProfilesByRef)[PUTChange a workload profile](https://slashinfra.com/docs/api-reference/control/profiles#putProfilesByRef)

### List workload profiles

GET

/profiles

Returns every reusable workload profile of one project, by name. `project` is an id or name and defaults to `default`. A profile holds environment, inbox, domain filter, secret injection, sleep, readiness and concurrency settings; an SVM copies them at creation.

#### Authorization

`apiKey`

header`Authorization``Bearer <token>`

An API key (`si_` and 43 base64url characters), sent as `Authorization: Bearer si_...`; see [Using the API](https://slashinfra.com/docs/reference/api).

#### Query Parameters

`project?`string

The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.

#### Response Body

Every workload profile of the project, by name; `[]` when the project has none.

`application/json`

- response

- response
- …

Every workload profile of the project, by name; `[]` when the project has none.

`[index: integer]?`

One reusable workload profile of the organization.

Example Request

```
curl -X GET 'https://api.slashinfra.com/profiles'
```

Example ResponseSchema

```
[  {    "concurrency": 64,    "created_ms": 1767225600000,    "egress": {      "allowed_domains": [        "api.example.com"      ],      "filtering": true    },    "env": {      "DEBUG": "1"    },    "github": "conn_6f1c0f0e8a",    "id": "prof_6f1c0f0e8a",    "inbox": {      "allowed_senders": [        "ada@example.com"      ],      "enabled": true    },    "name": "dev",    "project": "proj_6f1c0f0e8a",    "readiness": {      "port": 5432,      "timeout_s": 30    },    "secret_injections": [      {        "domain": "api.openai.com",        "header": "authorization",        "placeholder": "__TELEGRAM_BOT_TOKEN__",        "secret_id": "sec_6f1c0f0e8a",        "value_format": "raw",        "value_prefix": "Bearer "      }    ],    "sleep": {      "after_s": 1800,      "mode": "timer"    },    "updated_ms": 1767225600000  }]
```

### Create a workload profile

POST

/profiles

Creates a reusable set of workload settings in a project: environment, inbox, domain filter, secret injections, sleep, readiness and concurrency, but no SVM name, size, region, snapshot or secret value. Later edits affect only new SVMs.

#### Authorization

`apiKey`

header`Authorization``Bearer <token>`

An API key (`si_` and 43 base64url characters), sent as `Authorization: Bearer si_...`; see [Using the API](https://slashinfra.com/docs/reference/api).

#### Request Body

The name and optional workload settings of the new profile.

- body

- body
- …

The name and optional workload settings of the new profile.

`concurrency?`number

The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the `max_concurrency` of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.

`egress?`

The optional domain filter of a workload; filtering is off by default.

`env?`

The environment of a workload: at most 128 variables and 32 KiB together. `SVM_*`, `SI_*`, proxy variables and `HOME`, `USER` and `LOGNAME` are refused.

`github?`|

A GitHub connection id of the organization.

`inbox?`

The optional email inbox of a workload, off by default.

`name*`string

The name of the profile, unique in its project: `^[a-z][a-z0-9-]{0,31}$`, and never a valid id; an existing name answers 409 `name_taken`.

`project?`string

The project id or name of the profile; `default` when omitted, and an unknown project answers 404 `project_not_found`.

`readiness?`|

The readiness of a declared service port: a request that waits on a wake is released when the port is ready.

`secret_injections?`array<>

HTTPS secret injections of the profile, in order; each secret must belong to the same project.

`sleep?`

The sleep policy: `{"mode":"auto"}`, `{"mode":"timer","after_s":1800}` or `{"mode":"on"}`.

#### Response Body

One reusable workload profile of the organization.

`application/json`

- response

- response
- …

One reusable workload profile of the organization.

`concurrency*`number

The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the `max_concurrency` of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.

`created_ms*`integer

The creation time in milliseconds since the Unix epoch.

`egress*`

The domain filter of a workload; with filtering on, it permits only the listed destinations.

`env*`

The environment of a workload: at most 128 variables and 32 KiB together. `SVM_*`, `SI_*`, proxy variables and `HOME`, `USER` and `LOGNAME` are refused.

`github*`|

The GitHub connection whose rules cover every GitHub host of the workload, or `null`.

`id*`string

The profile id: `prof_` and ten symbols of the SVM id alphabet.

`inbox*`

The inbox of a workload: whether it accepts mail and its sender rule.

`name*`string

The name of the profile, unique in its project.

`project*`string

The id of the project of the profile.

`readiness*`|

The readiness of a declared service port: a request that waits on a wake is released when the port is ready.

`secret_injections*`array<>

The HTTPS secret injections of a workload, in order; no two rules share a domain and header or a domain and placeholder.

`sleep*`|||

The sleep policy that a new SVM copies, or `null` when the profile sets none and an SVM starts on `auto`.

`updated_ms*`integer

The time of the last change, in milliseconds since the Unix epoch.

Example Request

```
curl -X POST 'https://api.slashinfra.com/profiles' \  -H 'Content-Type: application/json' \  -d '{  "name": "dev"}'
```

Example ResponseSchema

```
{  "concurrency": 64,  "created_ms": 1767225600000,  "egress": {    "allowed_domains": [      "api.example.com"    ],    "filtering": true  },  "env": {    "DEBUG": "1"  },  "github": "conn_6f1c0f0e8a",  "id": "prof_6f1c0f0e8a",  "inbox": {    "allowed_senders": [      "ada@example.com"    ],    "enabled": true  },  "name": "dev",  "project": "proj_6f1c0f0e8a",  "readiness": {    "port": 5432,    "timeout_s": 30  },  "secret_injections": [    {      "domain": "api.openai.com",      "header": "authorization",      "placeholder": "__TELEGRAM_BOT_TOKEN__",      "secret_id": "sec_6f1c0f0e8a",      "value_format": "raw",      "value_prefix": "Bearer "    }  ],  "sleep": {    "after_s": 1800,    "mode": "timer"  },  "updated_ms": 1767225600000}
```

### Delete a workload profile

DELETE

/profiles/{ref}

Deletes a profile. SVMs that copied its settings are not changed: their environment, inbox and domain filter stay as they were created.

#### Authorization

`apiKey`

header`Authorization``Bearer <token>`

An API key (`si_` and 43 base64url characters), sent as `Authorization: Bearer si_...`; see [Using the API](https://slashinfra.com/docs/reference/api).

#### Path Parameters

`ref*`string

The profile id (`prof_` and ten id symbols), or its name in the `project` query; an id resolves in every project.

Length`1 <= length`

#### Query Parameters

`project?`string

The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.

#### Response Body

The profile is deleted, with no body; every SVM that copied it keeps its settings.

`response?`string`text/plain`

The profile is deleted, with no body; every SVM that copied it keeps its settings.

Example Request

```
curl -X DELETE 'https://api.slashinfra.com/profiles/dev'
```

Example ResponseSchema

```
"string"
```

### Get a workload profile

GET

/profiles/{ref}

Returns one profile of the caller's organization. An id resolves in every project; a name resolves in the `project` query (`default` when omitted).

#### Authorization

`apiKey`

header`Authorization``Bearer <token>`

An API key (`si_` and 43 base64url characters), sent as `Authorization: Bearer si_...`; see [Using the API](https://slashinfra.com/docs/reference/api).

#### Path Parameters

`ref*`string

The profile id (`prof_` and ten id symbols), or its name in the `project` query; an id resolves in every project.

Length`1 <= length`

#### Query Parameters

`project?`string

The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.

#### Response Body

One reusable workload profile of the organization.

`application/json`

- response

- response
- …

One reusable workload profile of the organization.

`concurrency*`number

The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the `max_concurrency` of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.

`created_ms*`integer

The creation time in milliseconds since the Unix epoch.

`egress*`

The domain filter of a workload; with filtering on, it permits only the listed destinations.

`env*`

The environment of a workload: at most 128 variables and 32 KiB together. `SVM_*`, `SI_*`, proxy variables and `HOME`, `USER` and `LOGNAME` are refused.

`github*`|

The GitHub connection whose rules cover every GitHub host of the workload, or `null`.

`id*`string

The profile id: `prof_` and ten symbols of the SVM id alphabet.

`inbox*`

The inbox of a workload: whether it accepts mail and its sender rule.

`name*`string

The name of the profile, unique in its project.

`project*`string

The id of the project of the profile.

`readiness*`|

The readiness of a declared service port: a request that waits on a wake is released when the port is ready.

`secret_injections*`array<>

The HTTPS secret injections of a workload, in order; no two rules share a domain and header or a domain and placeholder.

`sleep*`|||

The sleep policy that a new SVM copies, or `null` when the profile sets none and an SVM starts on `auto`.

`updated_ms*`integer

The time of the last change, in milliseconds since the Unix epoch.

Example Request

```
curl -X GET 'https://api.slashinfra.com/profiles/dev'
```

Example ResponseSchema

```
{  "concurrency": 64,  "created_ms": 1767225600000,  "egress": {    "allowed_domains": [      "api.example.com"    ],    "filtering": true  },  "env": {    "DEBUG": "1"  },  "github": "conn_6f1c0f0e8a",  "id": "prof_6f1c0f0e8a",  "inbox": {    "allowed_senders": [      "ada@example.com"    ],    "enabled": true  },  "name": "dev",  "project": "proj_6f1c0f0e8a",  "readiness": {    "port": 5432,    "timeout_s": 30  },  "secret_injections": [    {      "domain": "api.openai.com",      "header": "authorization",      "placeholder": "__TELEGRAM_BOT_TOKEN__",      "secret_id": "sec_6f1c0f0e8a",      "value_format": "raw",      "value_prefix": "Bearer "    }  ],  "sleep": {    "after_s": 1800,    "mode": "timer"  },  "updated_ms": 1767225600000}
```

### Change a workload profile

PUT

/profiles/{ref}

Changes the name or a whole settings block of a profile; an id resolves in every project, and a name resolves in the `project` query. An SVM that copied the profile keeps its settings; only SVMs that start after the change read the new values.

#### Authorization

`apiKey`

header`Authorization``Bearer <token>`

An API key (`si_` and 43 base64url characters), sent as `Authorization: Bearer si_...`; see [Using the API](https://slashinfra.com/docs/reference/api).

#### Path Parameters

`ref*`string

The profile id (`prof_` and ten id symbols), or its name in the `project` query; an id resolves in every project.

Length`1 <= length`

#### Query Parameters

`project?`string

The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.

#### Request Body

The fields to change; an omitted block keeps its value, and a given block replaces it whole.

- body

- body
- …

The fields to change; an omitted block keeps its value, and a given block replaces it whole.

`concurrency?`number

The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the `max_concurrency` of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.

`egress?`

The optional domain filter of a workload; filtering is off by default.

`env?`

The environment of a workload: at most 128 variables and 32 KiB together. `SVM_*`, `SI_*`, proxy variables and `HOME`, `USER` and `LOGNAME` are refused.

`github?`|

A GitHub connection id of the organization.

`inbox?`

The optional email inbox of a workload, off by default.

`name?`string

The new name: `^[a-z][a-z0-9-]{0,31}$`, unique in the project; omit it to keep the name.

`readiness?`|

The readiness of a declared service port: a request that waits on a wake is released when the port is ready.

`secret_injections?`array<>

Replaces the HTTPS secret injections of the profile whole; each secret must belong to the same project.

`sleep?`

The sleep policy: `{"mode":"auto"}`, `{"mode":"timer","after_s":1800}` or `{"mode":"on"}`.

#### Response Body

One reusable workload profile of the organization.

`application/json`

- response

- response
- …

One reusable workload profile of the organization.

`concurrency*`number

The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the `max_concurrency` of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.

`created_ms*`integer

The creation time in milliseconds since the Unix epoch.

`egress*`

The domain filter of a workload; with filtering on, it permits only the listed destinations.

`env*`

The environment of a workload: at most 128 variables and 32 KiB together. `SVM_*`, `SI_*`, proxy variables and `HOME`, `USER` and `LOGNAME` are refused.

`github*`|

The GitHub connection whose rules cover every GitHub host of the workload, or `null`.

`id*`string

The profile id: `prof_` and ten symbols of the SVM id alphabet.

`inbox*`

The inbox of a workload: whether it accepts mail and its sender rule.

`name*`string

The name of the profile, unique in its project.

`project*`string

The id of the project of the profile.

`readiness*`|

The readiness of a declared service port: a request that waits on a wake is released when the port is ready.

`secret_injections*`array<>

The HTTPS secret injections of a workload, in order; no two rules share a domain and header or a domain and placeholder.

`sleep*`|||

The sleep policy that a new SVM copies, or `null` when the profile sets none and an SVM starts on `auto`.

`updated_ms*`integer

The time of the last change, in milliseconds since the Unix epoch.

Example Request

```
curl -X PUT 'https://api.slashinfra.com/profiles/dev' \  -H 'Content-Type: application/json' \  -d '{}'
```

Example ResponseSchema

```
{  "concurrency": 64,  "created_ms": 1767225600000,  "egress": {    "allowed_domains": [      "api.example.com"    ],    "filtering": true  },  "env": {    "DEBUG": "1"  },  "github": "conn_6f1c0f0e8a",  "id": "prof_6f1c0f0e8a",  "inbox": {    "allowed_senders": [      "ada@example.com"    ],    "enabled": true  },  "name": "dev",  "project": "proj_6f1c0f0e8a",  "readiness": {    "port": 5432,    "timeout_s": 30  },  "secret_injections": [    {      "domain": "api.openai.com",      "header": "authorization",      "placeholder": "__TELEGRAM_BOT_TOKEN__",      "secret_id": "sec_6f1c0f0e8a",      "value_format": "raw",      "value_prefix": "Bearer "    }  ],  "sleep": {    "after_s": 1800,    "mode": "timer"  },  "updated_ms": 1767225600000}
```

GET

/profiles

Example Request

```
curl -X GET 'https://api.slashinfra.com/profiles'
```

```
[
{
"concurrency": 64,
"created_ms": 1767225600000,
"egress": {
"allowed_domains": [
"api.example.com"
],
"filtering": true
},
"env": {
"DEBUG": "1"
},
"github": "conn_6f1c0f0e8a",
"id": "prof_6f1c0f0e8a",
"inbox": {
"allowed_senders": [
"ada@example.com"
],
"enabled": true
},
"name": "dev",
"project": "proj_6f1c0f0e8a",
"readiness": {
"port": 5432,
"timeout_s": 30
},
"secret_injections": [
{
"domain": "api.openai.com",
"header": "authorization",
"placeholder": "__TELEGRAM_BOT_TOKEN__",
"secret_id": "sec_6f1c0f0e8a",
"value_format": "raw",
"value_prefix": "Bearer "
}
],
"sleep": {
"after_s": 1800,
"mode": "timer"
},
"updated_ms": 1767225600000
}
]
```

POST

/profiles

Example Request

```
curl -X POST 'https://api.slashinfra.com/profiles' \
-H 'Content-Type: application/json' \
-d '{
"name": "dev"
}'
```

```
{
"concurrency": 64,
"created_ms": 1767225600000,
"egress": {
"allowed_domains": [
"api.example.com"
],
"filtering": true
},
"env": {
"DEBUG": "1"
},
"github": "conn_6f1c0f0e8a",
"id": "prof_6f1c0f0e8a",
"inbox": {
"allowed_senders": [
"ada@example.com"
],
"enabled": true
},
"name": "dev",
"project": "proj_6f1c0f0e8a",
"readiness": {
"port": 5432,
"timeout_s": 30
},
"secret_injections": [
{
"domain": "api.openai.com",
"header": "authorization",
"placeholder": "__TELEGRAM_BOT_TOKEN__",
"secret_id": "sec_6f1c0f0e8a",
"value_format": "raw",
"value_prefix": "Bearer "
}
],
"sleep": {
"after_s": 1800,
"mode": "timer"
},
"updated_ms": 1767225600000
}
```

DELETE

/profiles/{ref}

Example Request

```
curl -X DELETE 'https://api.slashinfra.com/profiles/dev'
```

```
"string"
```

GET

/profiles/{ref}

Example Request

```
curl -X GET 'https://api.slashinfra.com/profiles/dev'
```

```
{
"concurrency": 64,
"created_ms": 1767225600000,
"egress": {
"allowed_domains": [
"api.example.com"
],
"filtering": true
},
"env": {
"DEBUG": "1"
},
"github": "conn_6f1c0f0e8a",
"id": "prof_6f1c0f0e8a",
"inbox": {
"allowed_senders": [
"ada@example.com"
],
"enabled": true
},
"name": "dev",
"project": "proj_6f1c0f0e8a",
"readiness": {
"port": 5432,
"timeout_s": 30
},
"secret_injections": [
{
"domain": "api.openai.com",
"header": "authorization",
"placeholder": "__TELEGRAM_BOT_TOKEN__",
"secret_id": "sec_6f1c0f0e8a",
"value_format": "raw",
"value_prefix": "Bearer "
}
],
"sleep": {
"after_s": 1800,
"mode": "timer"
},
"updated_ms": 1767225600000
}
```

PUT

/profiles/{ref}

Example Request

```
curl -X PUT 'https://api.slashinfra.com/profiles/dev' \
-H 'Content-Type: application/json' \
-d '{}'
```

```
{
"concurrency": 64,
"created_ms": 1767225600000,
"egress": {
"allowed_domains": [
"api.example.com"
],
"filtering": true
},
"env": {
"DEBUG": "1"
},
"github": "conn_6f1c0f0e8a",
"id": "prof_6f1c0f0e8a",
"inbox": {
"allowed_senders": [
"ada@example.com"
],
"enabled": true
},
"name": "dev",
"project": "proj_6f1c0f0e8a",
"readiness": {
"port": 5432,
"timeout_s": 30
},
"secret_injections": [
{
"domain": "api.openai.com",
"header": "authorization",
"placeholder": "__TELEGRAM_BOT_TOKEN__",
"secret_id": "sec_6f1c0f0e8a",
"value_format": "raw",
"value_prefix": "Bearer "
}
],
"sleep": {
"after_s": 1800,
"mode": "timer"
},
"updated_ms": 1767225600000
}
```
