---
title: "Sign Agreement"
method: POST
path: "/api/v1/network-agreements/{agreement_id}/sign"
tags: ["v1", "Network Agreements"]
---

# Sign Agreement

`POST /api/v1/network-agreements/{agreement_id}/sign`

## Request

- Base URL: `https://api.jeevyfabrication.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jeevyfabrication.com/api/v1/network-agreements/{agreement_id}/sign`
- Auth: none declared

Record this shop's acceptance. Owner or manager only.

The affirmation is refused here rather than trusted to the modal: a request
with `accepted: false` has a name and a title in it and no agreement, and
recording it would be recording a form submission as a signature.

IDEMPOTENT by way of the service: a double-submitted modal gets the existing
signature back, not a 409.

`request.client.host` is the established IP source in this codebase (it is
what feeds `shops.signup_ip`). There is no X-Forwarded-For handling
anywhere in the backend, so none is invented here: behind a proxy this
records the proxy, which is a known and consistent limitation rather than a
header a caller can set for itself.

## Path parameters

- `agreement_id` integer, required

## Query parameters

- `kind` string

## Request body

- AgreementSign: Click-to-accept: the typed legal name, the job title, the affirmation. `accepted` is validated SERVER-SIDE and not merely rendered as a checkbox. A POST carrying `accepted: false` must be refused rather than recorded: a form that accepts two text fields and ignores the tick box has recorded a name, not an agreement. `agreement_id` is on the body rather than inferred so the service can check what the client was LOOKING AT against the live version. A shop that had the card open while Jeevy published v2 would otherwise sign v1 and still be refused by the gate, with nothing on screen to explain why.
  - `agreementId` integer, nullable
  - `signerName` string, required
  - `signerTitle` string, required
  - `accepted` boolean

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-18** `02b3f0a3ecbb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/changes/api/v1/network-agreements/:agreement_id/sign/post.md)

---

[API](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api.md) - [All operations](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/revisions/ad9a01abeac9?raw)
