POST
/
v1
/
generate
curl --request POST \
  --url https://mockwise.dev/api/v1/generate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data 'schema={
  "locale": "pt_BR",
  "repeat": 1,
  "show_errors": false,
  "single_item": true,
  "wrap": null,
  "mock": {
    "first_name": {
      "type": "firstName"
    },
    "last_name": {
      "type": "lastName"
    }
  }
}'
[
  {
    "first_name": "Talon",
    "last_name": "Kilback"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/x-www-form-urlencoded
schema
object
required

Response

200
application/json
Successfully generated mock data

By default, it returns an array with the requested data.