← Email Signature Generator
Your token

Email Signature Generator API

Writing the signature, the checks, the plain-text version and the contact card all run free in the browser and need no API. The API is for the one metered step: send the text of an old signature and get back, as JSON, which part is the name, pronouns, job title, department, company, office phone, mobile, e-mail, website, postal address, each social profile, a call-to-action link and a legal notice. The page keeps a value only if it appears in the text you sent.

Base URL: https://api.skillsafe.ai/v1/app-api. Every response is {"data": ...} or {"error": {"code", "message"}}; read error.code and error.message rather than the HTTP status alone.

The task field

This app has one task. Always send "task": "extract".

taskWhat it doesReply
extractReads a pasted signature and names each part, copying every value exactly as written. It never writes the signature and never invents a value.One JSON object

Input fields

All values are strings.

FieldMeaning
task"extract"
textThe old signature as plain text, up to 4,000 characters. The page replaces the middle of a longer paste with a line [... N characters left out ...].
foundJSON text: what the page found by pattern, {"emails": [...], "phones": [{"number", "label"}], "urls": [...]}, where label is "phone", "mobile" or "". Send "{}" if you have nothing.
text_noteEmpty, or a sentence saying what was cut.

The reply

job.output.output is text holding one JSON object (sometimes inside a ```json fence) with two keys: fields, an object of 19 strings (name, pronouns, title, department, company, phone, mobile, email, website, address, linkedin, x, github, instagram, facebook, youtube, cta_label, cta_url, disclaimer; "" when absent), and notes, 0 to 3 sentences about things the form cannot hold (a fax number, a second e-mail address, a quote). Before using a value, check it is in the text you sent: the page compares phone numbers by their digits, addresses line by line and links without https:// and www.. If the balance ran low, truncated is true and the object may stop early; drop the last value, it may be cut.

Worked example

Input (input.json), the example on the page:

{
  "task": "extract",
  "text": "Best regards,\n\nDr. Elena Rossi, Partner (she/her)\nRossi & Bell LLP | Litigation\nT: +1 (555) 010-2233  M: 555.010.9988\nelena.rossi@rossibell.example | www.rossibell.example\nlinkedin.com/in/elenarossi\n200 Main Street, Suite 400\nSpringfield, IL 62701\n\nCONFIDENTIALITY NOTICE: This e-mail and any attachments may contain privileged\nand confidential information intended only for the named recipient. If you received\nit in error, please notify the sender and delete it.\n\nSent from my iPhone",
  "found": "{\"emails\":[\"elena.rossi@rossibell.example\"],\"phones\":[{\"number\":\"+1 (555) 010-2233\",\"label\":\"phone\"},{\"number\":\"555.010.9988\",\"label\":\"mobile\"}],\"urls\":[\"www.rossibell.example\",\"linkedin.com/in/elenarossi\"]}",
  "text_note": ""
}

Reply:

{"fields":{"name":"Dr. Elena Rossi","pronouns":"she/her","title":"Partner","department":"Litigation","company":"Rossi & Bell LLP","phone":"+1 (555) 010-2233","mobile":"555.010.9988","email":"elena.rossi@rossibell.example","website":"www.rossibell.example","address":"200 Main Street, Suite 400, Springfield, IL 62701","linkedin":"linkedin.com/in/elenarossi","x":"","github":"","instagram":"","facebook":"","youtube":"","cta_label":"","cta_url":"","disclaimer":"CONFIDENTIALITY NOTICE: This e-mail and any attachments may contain privileged and confidential information intended only for the named recipient. If you received it in error, please notify the sender and delete it."},"notes":[]}

On the page, all 12 values in this reply are found in the paste and fill the form; the sign-off and “Sent from my iPhone” are left out.

Errors

HTTPWhat to do
401The token is missing, expired or a guest token on a run. Get a personal token on the token page.
402The balance is below what the run reserves. Top up at skillsafe.ai/account/billing.
400The body is not a JSON object of the fields above.
429Wait and retry with the same Idempotency-Key.

Step 1 — a tiny client helper

One function that sends JSON and unwraps the {data, error} envelope.

BASE="https://api.skillsafe.ai/v1/app-api"
TOKEN="paste-your-token-here"   # from https://email-signature-generator.skillsafe.ai/tokens.html
api() { # api METHOD PATH [JSON-BODY]
  curl -s -X "$1" "$BASE$2" -H "Content-Type: application/json" \
    ${TOKEN:+-H "Authorization: Bearer $TOKEN"} ${3:+--data "$3"}
}

Step 2 — a token

A guest token is enough for /me and /estimate. A run is metered, so it needs your personal token: sign in on the token page and copy it.

# a guest token (enough for /me and /estimate); a run needs your personal token from /tokens.html
TOKEN=$(curl -s -X POST "$BASE/guest" -H "Content-Type: application/json" -d '{"slug":"email-signature-generator"}' | jq -r '.data.token')

Step 3 — who am I, and my balance

subject_type is guest or user; credits is the balance (1 credit = $0.0001).

api GET /me | jq '.data | {subject_type, credits}' 

Step 4 — price a run for free

/estimate charges nothing and starts no job. hold_credits is the amount reserved while a run is in flight, not the price; the run is charged what it uses.

# input.json: the run input object - {"task": "extract", "text": "Maya Chen | Head of Partnerships\nNorthwind Analytics\nM: +1 555 010 0199", "found": "{...}", "text_note": ""}
api POST /estimate "$(cat input.json)" | jq '.data | {hold_credits, min_credits, model, model_alias, markup_bps, warnings}' 

Step 5 — run it and wait for the job

Send an Idempotency-Key derived from the input: a retry with the same key is never billed twice.

KEY="email-signature-generator:extract:$(shasum -a 256 input.json | cut -c1-16):a1"
JOB=$(curl -s -X POST "$BASE/run" -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: $KEY" --data @input.json | jq -r '.data.job_id')
while :; do
  J=$(api GET "/jobs/$JOB"); S=$(echo "$J" | jq -r '.data.status')
  case "$S" in succeeded|failed|cancelled) break;; esac; sleep 2
done
echo "$J" | jq -r '.data.output.output' > reply.json   # one JSON object: fields, notes
echo "$J" | jq '.data | {charged_credits, truncated}' 

Step 6 — or stream it

/run-stream sends Server-Sent Events while the job runs and the finished job at the end.

# Server-Sent Events: tick/delta events while the job runs, then a final event with the job
curl -N -s -X POST "$BASE/run-stream" -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: email-signature-generator:extract:$(shasum -a 256 input.json | cut -c1-16):a1" --data @input.json