# SIGNATURES

signatures endpoints.

**Base URL:** `https://api.trustpager.com/functions/v1/api/v1`

## Endpoints

### POST /signatures

Record a signature that somebody actually gave, against an opportunity, work order, task, contact, company or invoice of this workspace. Send the picture from the signature pad (signature_data) and the name of the person who signed. Only use this with a signature a real person gave on a signature pad: an assistant must never invent, draw or reuse a signature for anyone. A signature cannot be changed afterwards. If it was taken by mistake it can only be voided with void_signature, and it stays on file. Returns the signature with a short-lived link to its picture.

**Scopes:** `signatures:write` — [full detail](./signatures/post-signatures.md)

### GET /signatures/:signature_id

Fetch one signature by UUID as proof of sign-off: who signed, what they signed, when, whether it still stands, and image_url, a link to the picture that works for 10 minutes. A workspace admin also sees the IP address and browser it was signed from.

**Scopes:** `signatures:read` — [full detail](./signatures/get-signatures-signature-id.md)

### GET /signatures

List signatures people have given in this workspace, newest first: who signed, what they signed (an opportunity, work order, task, contact, company, invoice, app row or form), when, and whether it still stands. Use record_type with record_id to answer "who signed this work order" or "has the customer signed off", or signer_contact_id for everything one contact signed. Voided signatures are left out unless include_voided is true. Use get_signature for the picture. Free read.

**Scopes:** `signatures:read` — [full detail](./signatures/get-signatures.md)

### POST /signatures/:signature_id/void

Void a signature: mark it as no longer standing, with the reason. Nothing is deleted. The signature and its picture stay on file, shown as voided with who voided it, when and why. A signature can be voided once and voiding cannot be undone, so only do this when a person asks for it.

**Scopes:** `signatures:delete` — [full detail](./signatures/post-signatures-signature-id-void.md)
