Passphrase API

Simple API to generate random word passphrases and word lists.

Endpoints

/phrases

Returns passphrases (hyphenated words) with configurable options.

Query Parameters:

  • n - Number of passphrases to generate (default: 1)
  • words - Number of words per passphrase (default: 4)

Example:

/phrases?n=3&words=5

Response:

[ "word1-word2-word3-word4-word5", "word6-word7-word8-word9-word10", "word11-word12-word13-word14-word15" ]

/words

Returns lists of random words (as arrays).

Query Parameters:

  • n - Number of word lists to generate (default: 1)
  • words - Number of words per list (default: 4)

Example:

/words?n=2&words=3

Response:

[ ["word1", "word2", "word3"], ["word4", "word5", "word6"] ]