id
TechnicalGenerate auto-incrementing integer IDs starting from any value with configurable step. The classic primary key pattern for relational databases.
Example Outputs
1231001001Parameters
| Parameter | Description |
|---|---|
| start | Starting value (default 1) |
| step | Increment step (default 1) |
API Usage
Send a POST request to generate id data:
curl -X POST https://mockhero.dev/api/v1/generate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tables": [
{
"name": "example",
"count": 5,
"fields": [
{
"name": "id",
"type": "id"
}
]
}
]
}'Common Use Cases
- Primary key generation
- Sequential record IDs
- Foreign key testing
- Pagination testing
Generate ID + 155 more types via API
One API call. Multiple tables. Relational integrity. Free tier included.