---
title: "Accept Contract"
method: POST
path: "/my/contracts/{contractId}/accept"
tags: ["Contracts"]
---

# Accept Contract

`POST /my/contracts/{contractId}/accept`

Accept a contract by ID. 

You can only accept contracts that were offered to you, were not accepted yet, and whose deadlines has not passed yet.

## Path parameters

- `contractId` string, required

## Response `200`

Successfully accepted contract.

- object
  - `data` object, required
    - `agent` AgentJson, required — unresolved $ref
    - `contract` ContractJson, required — unresolved $ref

## Changes

> 50 revisions in range; 2 not diffed.

- **2025-02-06** `a4500b4e7ef1` — 1 breaking
  - added the new path request parameter `contractId`
- **2023-06-09** `735393b679c5` — 2 info
  - api tag `Contracts` added
  - api tag `contracts` removed
- **2023-05-23** `252df2c2fc84` — 1 info
  - endpoint added
- **2023-05-20** `86f8c56c4690` — 1 warning, 2 info
  - deleted the `path` request parameter `contractId`
  - api tag `contracts` added
  - api tag `Contracts` removed

[Change history](https://skmtc.dev/spacetradersapi/apis/spacetraders-api/changes/my/contracts/:contractId/accept/post.md)

---

[API](https://skmtc.dev/spacetradersapi/apis/spacetraders-api.md) · [All operations](https://skmtc.dev/spacetradersapi/apis/spacetraders-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/spacetradersapi/spacetraders-api/revisions/197cf9b9a2b6/schema)
