---
title: "Create a service"
method: POST
path: "/services/create"
tags: ["Services"]
---

# Create a service

`POST /services/create`

## Request

- Base URL: `https://api.spike.sh`
- URL: `https://api.spike.sh/services/create`
- Auth: none declared. Required headers: `x-api-key`, `x-team-id`
- TypeScript: <https://skmtc.dev/spike/apis/spike-sh-api/docs/services/create/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a new service in a team

## Headers

- `x-api-key` string, required
- `x-team-id` string, required

## Request body

- object
  - `name` string, required: Service name
  - `desc` string: Service description

## Response `200`

Service created successfully

## Other responses

- `401`: Unauthorized

---

[API](https://skmtc.dev/spike/apis/spike-sh-api.md) - [All operations](https://skmtc.dev/spike/apis/spike-sh-api/llms.txt) - [OpenAPI document](https://skmtc.dev/spike/apis/spike-sh-api/revisions/6854629119aa?raw)
