Skip to content
ToolsOnDuty - free online tools
Browse documentation

Reference / Generators

Generators API

23 endpoints for generators workflows. Every call requires bearer authentication and uses the standard ToolsOnDuty response envelope.

Try it

Runs a real request from your browser to your own ToolsOnDuty account. Your key is only kept in this page and is never stored.

POST/v1/uuid1 credit / call

UUID v4 generator

Generate one or more random UUID v4 values.

ParameterTypeRequiredDescription
countnumberNoHow many to generate (1-100). Default: 1.

Request

curl -X POST https://toolsonduty.com/api/v1/uuid \
  -H "Authorization: ******" \
  -H "Content-Type: application/json" \
  -d '{"count":3}'

Response

{
  "ok": true,
  "data": {
    "uuids": [
      "b3b7...",
      "c4d8...",
      "e5f1..."
    ]
  }
}
POST/v1/token1 credit / call

Random token generator

Generate one or more cryptographically random tokens in hex, base62, base64url or alphanumeric.

ParameterTypeRequiredDescription
formatstringNohex | base62 | base64url | alphanumeric. Default: base62.
lengthnumberNoToken length (1-256). Default: 32.
countnumberNoHow many to generate (1-100). Default: 1.
prefixstringNoOptional prefix prepended to each token.

Request

curl -X POST https://toolsonduty.com/api/v1/token \
  -H "Authorization: ******" \
  -H "Content-Type: application/json" \
  -d '{"format":"base62","length":24}'

Response

{
  "ok": true,
  "data": {
    "tokens": [
      "aZ9k..."
    ]
  }
}
POST/v1/generators/passphrase1 credit / call

Memorable passphrase generator

Generate a memorable passphrase (e.g. correct-horse-battery-staple) from a curated word list using secure randomness.

ParameterTypeRequiredDescription
wordsnumberNoNumber of words (2-12). Default: 4.
separatorstringNoSeparator between words. Default: -.
capitalizebooleanNoCapitalize each word. Default: false.
numberbooleanNoAppend a random 2-digit number. Default: false.

Request

curl -X POST https://toolsonduty.com/api/v1/generators/passphrase \
  -H "Authorization: ******" \
  -H "Content-Type: application/json" \
  -d '{"words":4}'

Response

{
  "ok": true,
  "data": {
    "result": "coral-lantern-otter-brave"
  }
}
POST/v1/generators/ascii-banner1 credit / call

ASCII banner generator

Render text as a large block-letter ASCII banner (5-row font).

ParameterTypeRequiredDescription
textstringYesText to render (max ~40 characters recommended).

Request

curl -X POST https://toolsonduty.com/api/v1/generators/ascii-banner \
  -H "Authorization: ******" \
  -H "Content-Type: application/json" \
  -d '{"text":"HI"}'

Response

{
  "ok": true,
  "data": {
    "result": "#   #  #####\n#   #    #\n#####    #\n#   #    #\n#   #  #####"
  }
}
POST/v1/generators/mock-data1 credit / call

Mock data generator

Generate an array of mock JSON records with the requested fields: id, firstName, lastName, fullName, email, phone, city, street, company, jobTitle, date, boolean, uuid.

ParameterTypeRequiredDescription
fieldsstringYesArray of field names, e.g. ["firstName","email"]. Allowed: id, firstName, lastName, fullName, email, phone, city, street, company, jobTitle, date, boolean, uuid.
countnumberNoNumber of records (1-1000). Default: 10.

Request

curl -X POST https://toolsonduty.com/api/v1/generators/mock-data \
  -H "Authorization: ******" \
  -H "Content-Type: application/json" \
  -d '{"fields":["firstName","email"],"count":2}'

Response

{
  "ok": true,
  "data": {
    "result": [
      {
        "firstName": "Ada",
        "email": "ada.lovelace@example.com"
      }
    ]
  }
}
POST/v1/generate/cuid1 credit / call

CUID generator

Generate one or more collision-resistant CUID-style identifiers using secure randomness.

ParameterTypeRequiredDescription
countnumberNoNumber of identifiers from 1 to 100. Default: 1.

Request

curl -X POST https://toolsonduty.com/api/v1/generate/cuid \
  -H "Authorization: ******" \
  -H "Content-Type: application/json" \
  -d '{"count":2}'

Response

{
  "ok": true,
  "data": {
    "values": [
      "cm...",
      "cm..."
    ]
  }
}
POST/v1/generate/user-agent1 credit / call

User-Agent generator

Generate a plausible browser User-Agent for a selected operating system and version.

ParameterTypeRequiredDescription
browserstringNochrome | firefox | safari | edge. Default: chrome.
osstringNowindows | macos | linux | android | ios. Default: windows.
versionstringNoBrowser version with 1 to 4 numeric segments. Default: 125.

Request

curl -X POST https://toolsonduty.com/api/v1/generate/user-agent \
  -H "Authorization: ******" \
  -H "Content-Type: application/json" \
  -d '{"browser":"chrome","os":"windows","version":"125"}'

Response

{
  "ok": true,
  "data": {
    "result": "Mozilla/5.0 ..."
  }
}
POST/v1/generate/test-imei1 credit / call

Test IMEI generator

Generate synthetic checksum-valid IMEI-format values for software testing only.

ParameterTypeRequiredDescription
tacstringNoEight-digit test TAC. Default: 35693803.
countnumberNoNumber of values from 1 to 100. Default: 1.

Request

curl -X POST https://toolsonduty.com/api/v1/generate/test-imei \
  -H "Authorization: ******" \
  -H "Content-Type: application/json" \
  -d '{"tac":"35693803","count":2}'

Response

{
  "ok": true,
  "data": {
    "values": [
      "35693803...",
      "35693803..."
    ]
  }
}
POST/v1/generators/ulid1 credit / call

ULID generator

Generate lexicographically sortable 26-character ULIDs using a supplied or current Unix millisecond timestamp.

ParameterTypeRequiredDescription
countnumberNoNumber of ULIDs to generate (1-100). Default: 1.
timestampMsnumberNoOptional Unix timestamp in milliseconds.

Request

curl -X POST https://toolsonduty.com/api/v1/generators/ulid \
  -H "Authorization: ******" \
  -H "Content-Type: application/json" \
  -d '{"count":2}'

Response

{
  "ok": true,
  "data": {
    "result": [
      "01J00000000000000000000000"
    ],
    "count": 2
  }
}
POST/v1/generators/lorem-ipsum1 credit / call

Lorem Ipsum generator

Generate placeholder text by paragraphs, sentences or words with an optional classic opening.

ParameterTypeRequiredDescription
unitstringNoparagraphs | sentences | words. Default: paragraphs.
countnumberNoNumber of requested units (1-100). Default: 3.
startWithLeadbooleanNoBegin with the classic Lorem Ipsum opening. Default: true.

Request

curl -X POST https://toolsonduty.com/api/v1/generators/lorem-ipsum \
  -H "Authorization: ******" \
  -H "Content-Type: application/json" \
  -d '{"unit":"paragraphs","count":2,"startWithLead":true}'

Response

{
  "ok": true,
  "data": {
    "unit": "paragraphs",
    "count": 2,
    "result": "Lorem ipsum..."
  }
}
POST/v1/generators/username1 credit / call

Username generator

Generate username ideas from an optional normalized keyword without checking external account availability.

ParameterTypeRequiredDescription
keywordstringNoOptional keyword included in each username.
countnumberNoNumber of unique suggestions (1-100). Default: 12.

Request

curl -X POST https://toolsonduty.com/api/v1/generators/username \
  -H "Authorization: ******" \
  -H "Content-Type: application/json" \
  -d '{"keyword":"tools","count":3}'

Response

{
  "ok": true,
  "data": {
    "result": [
      "brighttools42",
      "pixeltools18",
      "swifttools73"
    ],
    "count": 3
  }
}
POST/v1/generators/qr-code2 credits / call

QR Code SVG generator

Generate a scalable QR Code SVG with configurable error correction, quiet zone and colors.

ParameterTypeRequiredDescription
textstringYesText or URL to encode.
errorCorrectionstringNoL | M | Q | H. Default: M.
marginnumberNoQuiet-zone width in modules (0-16). Default: 4.
darkstringNoDark-module hexadecimal color. Default: #0f172a.
lightstringNoBackground hexadecimal color. Default: #ffffff.

Request

curl -X POST https://toolsonduty.com/api/v1/generators/qr-code \
  -H "Authorization: ******" \
  -H "Content-Type: application/json" \
  -d '{"text":"https://toolsonduty.com","errorCorrection":"M"}'

Response

{
  "ok": true,
  "data": {
    "modules": 29,
    "viewBoxSize": 37,
    "svg": "<svg>...</svg>"
  }
}
POST/v1/generators/barcode2 credits / call

CODE128 barcode SVG generator

Generate a dependency-free SVG rendering of a CODE128 barcode for printable or web output.

ParameterTypeRequiredDescription
valuestringYesASCII text to encode (maximum 200 characters).
moduleWidthnumberNoWidth of each barcode module (1-4). Default: 2.
heightnumberNoBar height in pixels (20-400). Default: 100.
marginnumberNoOuter margin in pixels (0-40). Default: 16.
displayValuebooleanNoPrint the encoded value below the bars. Default: true.

Request

curl -X POST https://toolsonduty.com/api/v1/generators/barcode \
  -H "Authorization: ******" \
  -H "Content-Type: application/json" \
  -d '{"value":"ToolsOnDuty"}'

Response

{
  "ok": true,
  "data": {
    "format": "CODE128",
    "width": 266,
    "height": 156,
    "svg": "<svg>...</svg>"
  }
}
POST/v1/generators/test-card1 credit / call

Test credit-card number generator

Generate synthetic Luhn-valid card-number formats for QA and form testing; generated values cannot be used for payments.

ParameterTypeRequiredDescription
brandstringNovisa | mastercard | amex | discover. Default: visa.
countnumberNoNumber of test values (1-100). Default: 1.
formattedbooleanNoInclude standard visual spacing. Default: true.

Request

curl -X POST https://toolsonduty.com/api/v1/generators/test-card \
  -H "Authorization: ******" \
  -H "Content-Type: application/json" \
  -d '{"brand":"visa","count":2}'

Response

{
  "ok": true,
  "data": {
    "values": [
      "4111 1111 1111 1111"
    ],
    "warning": "Synthetic test data only."
  }
}
POST/v1/generators/hashtags1 credit / call

Hashtag generator

Generate up to thirty hashtag ideas from supplied keywords and curated category terms; no live trend data is used.

ParameterTypeRequiredDescription
keywordsstringYesComma- or newline-separated topic keywords.
categorystringNobusiness | education | fitness | food | creator. Default: creator.
locationstringNoOptional location term.
brandstringNoOptional brand term.
countnumberNoNumber of hashtags (1-30). Default: 18.

Request

curl -X POST https://toolsonduty.com/api/v1/generators/hashtags \
  -H "Authorization: ******" \
  -H "Content-Type: application/json" \
  -d '{"keywords":"meal prep, healthy lunch","category":"food","count":10}'

Response

{
  "ok": true,
  "data": {
    "hashtags": [
      "#mealprep",
      "#healthylunch"
    ],
    "count": 10
  }
}
POST/v1/generators/baby-names1 credit / call

Baby-name idea generator

Return a randomized selection from a small curated name list for inspiration.

ParameterTypeRequiredDescription
stylestringNoany | feminine | masculine. Default: any.
countnumberNoNumber of unique suggestions (1-6). Default: 5.

Request

curl -X POST https://toolsonduty.com/api/v1/generators/baby-names \
  -H "Authorization: ******" \
  -H "Content-Type: application/json" \
  -d '{"style":"any","count":3}'

Response

{
  "ok": true,
  "data": {
    "names": [
      "Avery",
      "Sage",
      "Rowan"
    ],
    "count": 3
  }
}
POST/v1/generators/company-name1 credit / call

Company-name generator

Generate synthetic company-name ideas from an optional keyword and industry style.

ParameterTypeRequiredDescription
keywordstringNoOptional word included in each suggestion.
industrystringNotechnology | finance | health | retail | creative. Default: technology.
countnumberNoNumber of suggestions (1-25). Default: 12.

Request

curl -X POST https://toolsonduty.com/api/v1/generators/company-name \
  -H "Authorization: ******" \
  -H "Content-Type: application/json" \
  -d '{"keyword":"Orbit","industry":"technology","count":3}'

Response

{
  "ok": true,
  "data": {
    "names": [
      "Apex Orbit Labs"
    ],
    "count": 3
  }
}
POST/v1/generators/random-user1 credit / call

Random user generator

Generate synthetic user fixtures with example.com email addresses and fictional 555 phone numbers.

ParameterTypeRequiredDescription
countnumberNoNumber of records (1-100). Default: 5.

Request

curl -X POST https://toolsonduty.com/api/v1/generators/random-user \
  -H "Authorization: ******" \
  -H "Content-Type: application/json" \
  -d '{"count":2}'

Response

{
  "ok": true,
  "data": {
    "users": [
      {
        "fullName": "Avery Morgan",
        "email": "avery.morgan123@example.com"
      }
    ],
    "count": 2
  }
}
POST/v1/generators/random-identity1 credit / call

Random identity generator

Generate synthetic identity fixtures for QA, demos and local development.

ParameterTypeRequiredDescription
countnumberNoNumber of identities (1-100). Default: 3.

Request

curl -X POST https://toolsonduty.com/api/v1/generators/random-identity \
  -H "Authorization: ******" \
  -H "Content-Type: application/json" \
  -d '{"count":1}'

Response

{
  "ok": true,
  "data": {
    "identities": [
      {
        "synthetic": true
      }
    ],
    "count": 1
  }
}
POST/v1/generators/random-word1 credit / call

Random word generator

Generate randomized nouns, verbs, adjectives or a mixed word list from a curated local vocabulary.

ParameterTypeRequiredDescription
categorystringNomixed | noun | verb | adjective. Default: mixed.
countnumberNoNumber of unique words. Default: 8.

Request

curl -X POST https://toolsonduty.com/api/v1/generators/random-word \
  -H "Authorization: ******" \
  -H "Content-Type: application/json" \
  -d '{"category":"noun","count":3}'

Response

{
  "ok": true,
  "data": {
    "words": [
      "bridge",
      "signal",
      "canvas"
    ],
    "count": 3
  }
}
POST/v1/generators/short-code1 credit / call

Short-code generator

Generate unique short codes with configurable length, safe alphabet and prefix.

ParameterTypeRequiredDescription
lengthnumberNoGenerated portion length (4-16). Default: 8.
countnumberNoNumber of unique codes (1-100). Default: 10.
alphabetstringNoalphanumeric | uppercase | numeric. Default: alphanumeric.
prefixstringNoOptional safe prefix.

Request

curl -X POST https://toolsonduty.com/api/v1/generators/short-code \
  -H "Authorization: ******" \
  -H "Content-Type: application/json" \
  -d '{"length":8,"count":2,"prefix":"REF-"}'

Response

{
  "ok": true,
  "data": {
    "codes": [
      "REF-X7kp92Qa"
    ],
    "count": 2
  }
}