# Deploy service source

`POST https://api.instacloud.com/projects/{projectId}/services/{serviceId}/source/deploy`

**Token scope:** `account` · `org` · `project` — read-only tokens refused (not a GET).

Build and deploy the tracked branch’s tip now — the redeploy for a public repo or a service with auto-deploy off; a terminal build of the same tip is re-run.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `projectId` | path | `string` | yes |  |
| `serviceId` | path | `string` | yes |  |

## Response 202

Default Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `build` | `object` | yes |  |
| `build.buildId` | `string` | yes |  |
| `build.queued` | `boolean` | yes | false when this commit already has a build (dedup) |
| `build.serviceId` | `string` | yes |  |

## Response 400

Default Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `error` | `string` | yes |  |

## Response 403

Default Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `error` | `string` | yes |  |

## Response 404

Default Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `error` | `string` | yes |  |
