GET/api/v1/seed/status
Whether a seed file is loaded and when it was applied.
- CLI
sendmock seed status- MCP tool
sendmock_seed_status- In the app
- Settings > Seed
Answer
200 SeedStatus
/api/v1/seed/statusWhether a seed file is loaded and when it was applied.
sendmock seed statussendmock_seed_status200 SeedStatus
/api/v1/seed/exportThe current configuration as sendmock.seed.toml.
sendmock seed exportsendmock_seed_export200 string (application/toml)
/api/v1/seed/validateCheck a seed file without applying it.
sendmock seed validate <file>sendmock_seed_validateSeedFileRequest : Body of POST /api/v1/seed/validate and /seed/apply.
| Field | Type | Description |
|---|---|---|
| seed_toml | string | The seed file's text ( sendmock.seed.toml).Example: [[numbers]]
number = "+15550001111"
label = "Support line" |
200 SeedValidation
/api/v1/seed/applyApply a seed file; 422 with the errors when it is invalid.
sendmock seed apply <file>sendmock_seed_applySeedFileRequest : Body of POST /api/v1/seed/validate and /seed/apply.
| Field | Type | Description |
|---|---|---|
| seed_toml | string | The seed file's text ( sendmock.seed.toml).Example: [[numbers]]
number = "+15550001111"
label = "Support line" |
200 SeedValidation
Errors: 422, as { error: { code, message } }