GET/api/v1/projects
Every project, default first, with the traffic each holds.
- CLI
sendmock projects list- MCP tool
sendmock_project_list- In the app
- Settings > Projects
Answer
200 Project[]
/api/v1/projectsEvery project, default first, with the traffic each holds.
sendmock projects listsendmock_project_list200 Project[]
/api/v1/projectsAdd a project that apps can send traffic to by its key.
sendmock projects createsendmock_project_createProjectInput : Body of POST /api/v1/projects.
| Field | Type | Description |
|---|---|---|
| key | string | What apps send as the SMTP username, the X-SendMock-Project header or the /projects/<key>/ URL prefix. It never changes.Example: shop |
| name | string | A name for the project, shown in the UI.Example: Shop |
201 Project
Errors: 400, 409, as { error: { code, message } }
/api/v1/projects/{projectKey}Rename a project; its key stays the same.
sendmock projects update <projectKey>sendmock_project_updateProjectUpdate : Body of PATCH /api/v1/projects/{projectKey}: the new name.
| Field | Type | Description |
|---|---|---|
| name | string | A name for the project, shown in the UI.Example: Shop |
200 Project
Errors: 400, 404, as { error: { code, message } }
/api/v1/projects/{projectKey}Delete a project with its emails, SMS and verifications.
sendmock projects delete <projectKey>sendmock_project_delete204 No content
Errors: 404, 409, as { error: { code, message } }