Welcome to the JSON Generator Docs!

[
{
  "_id": "56de80143d5250421ff4dccc",
  "index": 0,
  "guid": "317dd2ef-1476-4b2e-94f9-eaf025e3e91d",
  "isActive": false,
  "balance": "$3,988.40",
  "picture": "http://placehold.it/32x32",
  "age": 22,
  "eyeColor": "green",
  "name": "Melody Klein"
},
{
  "_id": "56de801432737195e25a3eca",
  "index": 1,
  "guid": "55d67c8f-249e-4ec5-9b21-42f553d462f3",
  "isActive": true,
  "balance": "$3,131.49",
  "picture": "http://placehold.it/32x32",
  "age": 33,
  "eyeColor": "brown",
  "name": "Wooten Hays"
},
{
  "_id": "56de8014089c9abc37632a47",
  "index": 2,
  "guid": "69f53b9a-dc7b-40dc-8734-60368d7f2aa3",
  "isActive": true,
  "balance": "$1,068.51",
  "picture": "http://placehold.it/32x32",
  "age": 36,
  "eyeColor": "blue",
  "name": "Bonnie Potts"
},
{
  "_id": "56de8014f4195c687262546d",
  "index": 3,
  "guid": "b81415f2-e5fa-497a-9bee-72a531c03503",
  "isActive": true,
  "balance": "$2,171.05",
  "picture": "http://placehold.it/32x32",
  "age": 35,
  "eyeColor": "brown",
  "name": "Mcfadden Kinney"
},
{
  "_id": "56de8014454268151a8fc227",
  "index": 4,
  "guid": "8fa2c061-c38f-4ea7-b05a-2af43edff6c9",
  "isActive": false,
  "balance": "$3,481.69",
  "picture": "http://placehold.it/32x32",
  "age": 31,
  "eyeColor": "green",
  "name": "Campos Deleon"
},
{
  "_id": "56de801449d88abf3efa031b",
  "index": 5,
  "guid": "444ada11-bd81-43c5-b3d7-946795fb427f",
  "isActive": false,
  "balance": "$2,066.05",
  "picture": "http://placehold.it/32x32",
  "age": 32,
  "eyeColor": "green",
  "name": "Winifred Olson"
},
{
  "_id": "56de80140e61b903a46c4112",
  "index": 6,
  "guid": "4dc41819-179a-4706-afd0-50b184389131",
  "isActive": true,
  "balance": "$3,451.55",
  "picture": "http://placehold.it/32x32",
  "age": 29,
  "eyeColor": "brown",
  "name": "Rosa Lindsay"
},
{
  "_id": "56de8014fa9b8832e21c99f1",
  "index": 7,
  "guid": "16855800-7d59-45b8-9593-2eaac5160e6c",
  "isActive": false,
  "balance": "$2,525.32",
  "picture": "http://placehold.it/32x32",
  "age": 23,
  "eyeColor": "blue",
  "name": "Edna Herman"
},
{
  "_id": "56de8014d29032731bf0c863",
  "index": 8,
  "guid": "94e9fad0-4b3b-4b5f-8ef1-155c6f5b5f59",
  "isActive": false,
  "balance": "$3,356.47",
  "picture": "http://placehold.it/32x32",
  "age": 37,
  "eyeColor": "brown",
  "name": "Vargas Poole"
},
{
  "_id": "56de8014397d36d66a075527",
  "index": 9,
  "guid": "46df9d68-7379-41d0-8d51-d8a8d647d2fc",
  "isActive": true,
  "balance": "$3,143.34",
  "picture": "http://placehold.it/32x32",
  "age": 37,
  "eyeColor": "brown",
  "name": "Gay Berger"
}
]

Personal Access Tokens

To get generated data from the JSON Generator API you need to have a Personal Access Token. You can create as many personal access tokens as you like at Personal Access Tokens page.

Create a personal access token

In the top-right corner, click your username and select “Access Tokens”:

Go to access tokens page

After navigating to Personal Access Tokens page click “Generate new token” button and enter token name in the modal:

Create new personal access token

Click “Generate token” button. This will create a new token for you. Save the personal access token somewhere safe. After you close the modal window, you no longer have access to the token.

Copy your token to clipboard

Alright, now you have everything to get the generated data from the API. You can find data URL in the Get Data dropdown on the template page:

Get Data dropdown

You can fetch your data from this URL by providing access token in one of the three possible ways:

  1. Authorization header field where the value is in the format Bearer {token}:

     curl https://api.json-generator.com/templates/KvMz6Zubh1xv/data \
     -H 'Authorization: Bearer 4us718254sk7ils002z51n1n8r3qyae19i7zeyrt'
    
  2. or access_token body parameter:

     curl -X POST https://api.json-generator.com/templates/KvMz6Zubh1xv/data \
     -H 'Content-Type: application/json' \
     -d '{"access_token": "4us718254sk7ils002z51n1n8r3qyae19i7zeyrt"}'
    
  3. or access_token query parameter:

     curl https://api.json-generator.com/templates/KvMz6Zubh1xv/data?access_token=4us718254sk7ils002z51n1n8r3qyae19i7zeyrt
    

Revoke a personal access token

At any time, you can revoke a personal access token.

#. In the top-right corner, click your username and select “Access Tokens”. #. After navigating to Personal Access Tokens page click “Revoke” button and confirm the action.