Skip to content

Signing API

Sign a PDFin one call.

You post a PDF and the signer email. Forgeline returns the signed file when they finish.

Showing the signed file.

PDFSigned

Service agreement

service-agreement.pdf

Signer you@example.com

env_184214 Nov 2026, 09:41 UTC

200 completed

{  "id": "env_1842",  "status": "completed",  "file": "service-agreement.pdf",  "signers": [    {      "email": "you@example.com",      "status": "signed"    }  ]}

Three calls

Create it, send it, then take the file back.

Create the envelope, read the id, then take the signed file. Copy any call below.

Open the docs index
Create the envelopeJavaScript
const res = await fetch("https://api.example.com/v1/envelopes", {  method: "POST",  headers: {    Authorization: `Bearer ${process.env.FORGELINE_KEY}`,    "Content-Type": "application/json",  },  body: JSON.stringify({    file: "service-agreement.pdf",    signers: ["you@example.com"],  }),});

Clients

The same envelope, in the language you ship.

Each client sends the same envelope. Pick the language you already use.

  • JavaScript

    Send an envelope from a server route.

    // npm install @example/forgelineimport { Forgeline } from "@example/forgeline"; const client = new Forgeline(process.env.FORGELINE_KEY);const envelope = await client.envelopes.create({  file: "service-agreement.pdf",  signers: ["you@example.com"],});
  • Python

    Send an envelope from a backend job.

    # pip install example-forgelineimport osfrom forgeline import Forgeline client = Forgeline(os.environ["FORGELINE_KEY"])envelope = client.envelopes.create(    file="service-agreement.pdf",    signers=["you@example.com"],)
  • Go

    Send an envelope from a Go service.

    // go get example.com/forgelineclient := forgeline.New(os.Getenv("FORGELINE_KEY"))env, err := client.Envelopes.Create(ctx, forgeline.Create{    File:    "service-agreement.pdf",    Signers: []string{"you@example.com"},})
  • Ruby

    Send an envelope from a Ruby app.

    # gem install example-forgelineclient = Forgeline::Client.new(ENV.fetch("FORGELINE_KEY"))envelope = client.envelopes.create(  file: "service-agreement.pdf",  signers: ["you@example.com"])
  • PHP

    Send an envelope from a PHP app.

    // composer require example/forgeline$client = new Forgeline\Client(getenv("FORGELINE_KEY"));$envelope = $client->envelopes->create([    "file" => "service-agreement.pdf",    "signers" => ["you@example.com"],]);
  • Java

    Send an envelope from a Java service.

    // com.example:forgelinevar client = new ForgelineClient(System.getenv("FORGELINE_KEY"));var envelope = client.envelopes().create(    "service-agreement.pdf",    List.of("you@example.com"));
  • C#

    Send an envelope from a .NET service.

    // dotnet add package Example.Forgelinevar client = new ForgelineClient(    Environment.GetEnvironmentVariable("FORGELINE_KEY"));var envelope = await client.Envelopes.CreateAsync(    "service-agreement.pdf",    new[] { "you@example.com" });

Events

Know the moment a signer finishes.

Five events follow an envelope from send to signed file. Choose one to read the JSON.

envelope.completed
{  "event": "envelope.completed",  "envelope_id": "env_1842",  "file": "service-agreement.pdf"}

Every signer has signed. The signed file is ready.

PDFSigned

Service agreement

service-agreement.pdf

Signer you@example.com

env_184214 Nov 2026, 09:41 UTC
Event notes in the docs

Right now

Check the signing service before you send.

This page publishes the state of each part of the service.

All systems are operational.

  • Signing APIOperationalAccepting new envelopes.
  • Webhook deliveryOperationalPosting events to your URL.
  • Document storageOperationalStoring PDFs and signed files.
  • DashboardOperationalThis status page is up.
PDFSigned

Service agreement

service-agreement.pdf

Signer you@example.com

env_184214 Nov 2026, 09:41 UTC

Next

Send the next agreement from this call.

You already have the call. Point it at your PDF and your signer's email.