Projects
Projects, their environments and their services.
List projects
Section titled “List projects”GET/v1/orgs/{org}/projects
An organization's projects. Rules, environments and services all belong to a project.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
orgrequired | path | string | The organization's slug, as in its URL in the app. Example: "snugghome". |
limit | query | integer | How many items to return, 1 to 200. Default 100. |
cursor | query | string | A previous page's next_cursor, to fetch the page after it. Omit for the first page. |
Example request
curl https://api.spanslice.com/v1/orgs/snugghome/projects \ -H "Authorization: Bearer $SPANSLICE_TOKEN"Response 200
Example response
{ "data": [ { "slug": "snugghome-app", "name": "SnuggHome App", "organization": "snugghome", "created_at": "2026-09-18T12:00:00.000Z" } ], "next_cursor": null}Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request | The request is invalid; errors says where. |
| 401 | unauthorized | The access token is missing, unknown, expired or revoked. |
| 404 | not_found | It doesn't exist, or this token can't reach it. |
Get a project
Section titled “Get a project”GET/v1/orgs/{org}/projects/{project}
One project. A slug the project or its organization had before a rename still finds it.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
orgrequired | path | string | The organization's slug, as in its URL in the app. Example: "snugghome". |
projectrequired | path | string | The project's slug, as in its URL in the app. Example: "snugghome-app". |
Example request
curl https://api.spanslice.com/v1/orgs/snugghome/projects/snugghome-app \ -H "Authorization: Bearer $SPANSLICE_TOKEN"Response 200
Example response
{ "slug": "snugghome-app", "name": "SnuggHome App", "organization": "snugghome", "created_at": "2026-09-18T12:00:00.000Z"}Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request | The request is invalid; errors says where. |
| 401 | unauthorized | The access token is missing, unknown, expired or revoked. |
| 404 | not_found | It doesn't exist, or this token can't reach it. |
List environments
Section titled “List environments”GET/v1/orgs/{org}/projects/{project}/environments
A project's runtime environments in order. Check requires_commit before changing rules: in an environment that requires commit, changes wait for a commit before its SDKs see them.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
orgrequired | path | string | The organization's slug, as in its URL in the app. Example: "snugghome". |
projectrequired | path | string | The project's slug, as in its URL in the app. Example: "snugghome-app". |
limit | query | integer | How many items to return, 1 to 200. Default 100. |
cursor | query | string | A previous page's next_cursor, to fetch the page after it. Omit for the first page. |
Example request
curl https://api.spanslice.com/v1/orgs/snugghome/projects/snugghome-app/environments \ -H "Authorization: Bearer $SPANSLICE_TOKEN"Response 200
Example response
{ "data": [ { "slug": "staging", "name": "Staging", "description": null, "requires_commit": false, "position": 0 }, { "slug": "production", "name": "Production", "description": null, "requires_commit": true, "position": 1 } ], "next_cursor": null}Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request | The request is invalid; errors says where. |
| 401 | unauthorized | The access token is missing, unknown, expired or revoked. |
| 404 | not_found | It doesn't exist, or this token can't reach it. |
Get an environment
Section titled “Get an environment”GET/v1/orgs/{org}/projects/{project}/environments/{environment}
One runtime environment of a project: whether it requires commit, and so whether changes reach its SDKs at once or wait as pending changes.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
orgrequired | path | string | The organization's slug, as in its URL in the app. Example: "snugghome". |
projectrequired | path | string | The project's slug, as in its URL in the app. Example: "snugghome-app". |
environmentrequired | path | string | The environment's slug, as in its URL in the app. Example: "production". |
Example request
curl https://api.spanslice.com/v1/orgs/snugghome/projects/snugghome-app/environments/production \ -H "Authorization: Bearer $SPANSLICE_TOKEN"Response 200
Example response
{ "slug": "production", "name": "Production", "description": null, "requires_commit": true, "position": 1}Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request | The request is invalid; errors says where. |
| 401 | unauthorized | The access token is missing, unknown, expired or revoked. |
| 404 | not_found | It doesn't exist, or this token can't reach it. |
List services
Section titled “List services”GET/v1/orgs/{org}/projects/{project}/services
A project's services, by name, with the environments each is deployed to. A rule can apply to the whole project or to one service.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
orgrequired | path | string | The organization's slug, as in its URL in the app. Example: "snugghome". |
projectrequired | path | string | The project's slug, as in its URL in the app. Example: "snugghome-app". |
limit | query | integer | How many items to return, 1 to 200. Default 100. |
cursor | query | string | A previous page's next_cursor, to fetch the page after it. Omit for the first page. |
Example request
curl https://api.spanslice.com/v1/orgs/snugghome/projects/snugghome-app/services \ -H "Authorization: Bearer $SPANSLICE_TOKEN"Response 200
Example response
{ "data": [ { "slug": "api", "name": "Api", "description": null, "language": "nodejs", "repository_url": "https://github.com/acme/api", "environments": [ "staging", "production" ] }, { "slug": "worker", "name": "Worker", "description": null, "language": "ruby", "repository_url": null, "environments": [ "staging" ] } ], "next_cursor": null}Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request | The request is invalid; errors says where. |
| 401 | unauthorized | The access token is missing, unknown, expired or revoked. |
| 404 | not_found | It doesn't exist, or this token can't reach it. |