Skip to main content
POST
/
generic
/
data
/
generate
/
datatype
Generate synthetic datatype data
curl --request POST \
  --url https://apix.spotzee.com/api/ext/generic/data/generate/datatype \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data count=10 \
  --data locale=en \
  --data seed=12345 \
  --data method=boolean \
  --data probability=0.75
{
  "status": "success",
  "data": {
    "datatypes": [
      {
        "method": "boolean",
        "value": true,
        "boolean": true,
        "probability": 0.75
      }
    ],
    "generated": 1,
    "locale": "en",
    "seed": 12345,
    "method": "boolean"
  },
  "performance": {
    "generationTime": 2,
    "itemsGenerated": 1,
    "locale": "en"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.spotzee.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer token authentication. Use format: Bearer YOUR_API_KEY

Body

application/x-www-form-urlencoded
count
string

Number of datatype records to generate (1-100). Passed as string but must be numeric.

Pattern: ^[1-9]\d?$|^100$
Example:

"10"

locale
string

Locale for generated data (e.g., en, es, fr, de, pt_BR, zh_CN)

Example:

"en"

seed
string

Seed for deterministic generation. Same seed produces same results.

Example:

"12345"

method
enum<string>

Datatype generation method. Defaults to boolean.

Available options:
boolean
Example:

"boolean"

probability
string

Probability that generated boolean values return true. Range: 0-1 with up to two decimal places.

Pattern: ^(?:0(?:\.\d{1,2})?|1(?:\.0{1,2})?)$
Example:

"0.75"

Response

Successfully generated datatype data

status
enum<string>
required
Available options:
success
data
object
required
performance
object