Download OpenAPI specification:
This is the documentation for the Zanshin Product API. Zanshin is a vulnerability management platform that manages cloud risks on service providers for your company. Learn more at https://www.tenchisecurity.com/.
Note: This documentation file covers the current
endpoint only.
Zanshin is a platform where organizations are registered and then can register their cloud environments into the system for regular security checks. Organizations can register scan Targets, as the name implies, those are the target cloud accounts that will be scanned and monitored for potential security breachs.
Once one or more scan targets are registered the system will periodically run scans, those scans will generate security alerts that can be viewed and will provide details about the detected breach, why it is a breach, which renowed guidelines does it violate, the best practice for a fix, the affected resources and other usefull data. The scan history will also be preserved so the organization can keep track of the over time improvements.
Beyond scanning their own cloud infrastructures Zanshin provides organizations with the ability to follow and be followed by other organizations, in a social-network-like environment. When a organization follows another it can see the alerts and potential secutrity issues of the followed organization. This creates a situation where an organization that has several service provider can follow all of them and be assured that they are all following the best cyber security practices. The organizations that are being followed can allow clients and potential hirers to follow them and show off their awesome security skills to their employers.
User: an user account inside the system. One login. A user must be a member of one or more organizations. Users cannot follow or be followed, they inherit the follows as followings permissions of their organizations.
Member a user inside of an organization is a member of that organization. They can be admins with the powers to create and configure scan targets, accept risks, etc. or regular members with read-only permissions.
Organization the enitity representing a company, businness, or sector of a company it has members, it has scan targets and it can follow and be followed by other organizations. Some companies make different organizations for each of their internal divisions and follow each other.
Followers the organizations that follow your organization. Akin to social networks followers can see the situation of your scan targets and track your alerts. Some sensitive data relating to the alerts may be censored to the followers.
Following the organizations that your organization is currently following. You will be able to see their satus on each of the scan targets and keep track of any security issues they have.
Scan target a single cloud account (be it GCP, AWS, Azure, etc) it is a target of the scans. Where the security checks will happen. One organization may have as many scan targets as they wish.
Scan the results of a security check of a given scan target, it will happen periodically and automatically but can also be triggered manually.
Alert a scan will generate several alerts for each scan target (or none if your security is pristine). Alerts are just that, alerts of potential security failures or guidelines not being followed. Alerts have all the info you need on the problem severity and how to handle it. They can be viewed by the followers. ALerts cannot be manually closed, they are only considered closed when the next scan detects that the problem has been solved.
To use the documented endpoints of this documentation login into zanshin and Generate API Keys from the menu. Use the newly generate key as the {AUTH_TOKEN} mentioned through the docs.
List all data related to the current logger user.
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/me' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \
{- "id": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "name": "Miyamoto Musashi",
- "email": "niten_doraku@edo.com",
- "roles": [ ],
- "status": "ACTIVE",
- "member": [
- {
- "id": "00000000-0000-4000-a000-000000000001",
- "roles": [
- "ADMIN"
]
}
], - "following": [
- "ffffffff-ffff-4fff-afff-fffffffffff1",
- "22222222-2222-4222-a222-222222222221"
], - "language": "pr-BR",
- "identityProvider": "google-oauth2",
- "emailVerified": true,
- "lastIp": "192.168.0.1",
- "loginsCount": 42,
- "lastLogin": "2025-04-18T18:14:32.123Z",
- "createdAt": "2023-01-13T12:34:56.123Z",
- "updatedAt": "2025-02-21T15:44:12.123Z"
}
Update account information for current user.
name | string |
picture | string |
{- "name": "string",
- "picture": "string"
}
{- "id": "string",
- "name": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "picture": "string",
- "language": "string"
}
Lists all active API Keys for an user, API Keys can be used to interact directly with the zanshin API on the behalf of that user.
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/me/apikeys' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \
[- {
- "id": "12349876-bbbb-aaaa-8888-222220000fff",
- "name": "Jomae-ya",
- "key": "***123-Aa",
- "userId": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "lastIp": "192.168.0.1",
- "lastUse": "2025-04-07T19:03:28.014Z",
- "createdAt": "2025-03-22T09:54:56.123Z"
}
]
Creates a new API key for the current logged user.
curl -X 'POST' \ 'https://api.zanshin.tenchisecurity.com/me/apikeys' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -d '{ "name": "Jomae-ya" }'
{- "id": "12349876-bbbb-aaaa-8888-222220000fff",
- "name": "Jomae-ya",
- "key": "***123-Aa",
- "userId": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "lastIp": "192.168.0.1",
- "lastUse": "2025-04-07T19:03:28.014Z",
- "createdAt": "2025-03-22T09:54:56.123Z"
}
Deletes a given api key by its ID, only work if the key belongs to the current logged user
apiKeyId required | string <uuid> (common.Id) |
curl -X 'DELETE' \ 'https://api.zanshin.tenchisecurity.com/me/apikeys/{apiKeyId}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \
{- "statusCode": 400,
- "error": "BadRequest",
- "message": "BadRequest"
}
Get Freshdesk JWT token for current logged user.
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/me/freshdesk' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \
{- "token": "string"
}
Get all pending invites for the current user.
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/me/invites' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \
[- {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "organizationName": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "expiredAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
Get details for a specific invite
token required | string |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/me/invites/{token}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \
{- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "organizationName": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "expiredAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z"
}
Accepts an invitation and returns the created membership for that invitation
token required | string |
curl -X 'POST' \ 'https://api.zanshin.tenchisecurity.com/me/invites/{token}/accept' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \
{- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "name": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "identityProvider": "string",
- "lastIp": "string",
- "lastLogin": "string",
- "loginsCount": 0,
- "picture": "string"
}
Lists all organizations that the current logged user belongs to.
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
[- {
- "id": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "name": "Niten Ichi-ryu",
- "email": "example@org.com",
- "roles": [ ],
- "score": "79",
- "overallScore": "81",
- "publicScore": "92",
- "status": "ACTIVE",
- "tags": [
- [
- "design",
- "financial"
]
], - "updatedAt": "2022-01-15T12:34:56.123Z",
- "createdAt": "2021-01-01T12:34:56.123Z"
}
]
Creates a new organization to be owned by the current logged user.
Organization Name
name | string (name) The organization name |
string (email) The organization e-mail | |
pictureId | string <uuid> (pictureId) Organization profile picture attachment id |
{- "name": "Niten Ichi-ryu",
- "email": "example@org.com",
- "pictureId": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2"
}
{- "statusCode": 400,
- "error": "BadRequest",
- "message": "string"
}
Gets an organization details given its ID.
organizationId required | string Organization unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-0000-4000-a000-000000000002' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
{- "id": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "name": "Niten Ichi-ryu",
- "email": "example@org.com",
- "roles": [ ],
- "score": "79",
- "overallScore": "81",
- "publicScore": "92",
- "status": "ACTIVE",
- "tags": [
- [
- "design",
- "financial"
]
], - "updatedAt": "2022-01-15T12:34:56.123Z",
- "createdAt": "2021-01-01T12:34:56.123Z"
}
Edits an organization data given its ID, the operation will only succeed if the logged user is an administrator of the given organization.
organizationId required | string Organization unique identifier |
Organization Name
name | string (name) Organization Name |
pictureId | string <uuid> (pictureId) Profile picture attachment id |
string (email) Contact e-mail |
{- "name": "Org Name",
- "pictureId": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "email": "niten@ichi-ryu.com"
}
{- "id": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "name": "Niten Ichi-ryu",
- "email": "example@org.com",
- "roles": [ ],
- "score": "79",
- "overallScore": "81",
- "publicScore": "92",
- "status": "ACTIVE",
- "tags": [
- [
- "design",
- "financial"
]
], - "updatedAt": "2022-01-15T12:34:56.123Z",
- "createdAt": "2021-01-01T12:34:56.123Z"
}
Deletes an organization given its ID, the operation will only succeed if the logged user is an administrator of the informed organization. This operation cannot be undone.
organizationId required | string Organization unique identifier |
curl -X 'DELETE' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-0000-4000-a000-000000000002' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
true
Create a new questionnaire for organization. Only members can create a questionnaire.
organizationId required | string Organization unique identifier |
Questionnaire Name
name | string (name) The questionnaire name |
description | string (description) The questionnaire description with markdown |
{- "name": "LGPD Questionnaire",
- "description": "Was enacted to protect the fundamental rights of freedom and privacy, and the free formation of the personality of each individual"
}
{- "id": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "organizationId": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "version": 0,
- "name": "LGPD Questionnaire",
- "description": "Was enacted to protect the fundamental rights of freedom and privacy",
- "status": "ACTIVE",
- "createdAt": "2023-12-01T12:34:56.123Z",
- "updatedAt": "2023-12-01T12:34:56.123Z"
}
Get all questionnaire for organization. Only organization members can get all questionnaires. Can be sorted by name, status, createdAt, updatedAt, version and filtered by status and name.
organizationId required | string Organization unique identifier |
order | string Enum: "name" "status" "version" "createdAt" "updatedAt" Example: order=version |
sort | string Enum: "asc" "desc" Example: sort=asc |
status | string Enum: "ACTIVE" "INACTIVE" Example: status=ACTIVE |
name | string Example: name=myQuestionnaire |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-ffff-4000-a000-000000000001/questionnaires' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json' \
{- "data": [
- {
- "id": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "organizationId": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "version": 0,
- "name": "LGPD Questionnaire",
- "description": "Was enacted to protect the fundamental rights of freedom and privacy",
- "status": "ACTIVE",
- "createdAt": "2023-12-01T12:34:56.123Z",
- "updatedAt": "2023-12-01T12:34:56.123Z"
}
]
}
Get a specific questionnaire for organization. Only organization members can get all questionnaires.
organizationId required | string Organization unique identifier |
questionnaireId required | string Questionnaire unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-ffff-4000-a000-000000000001/questionnaires/f1b6afa7-0000-1111-2222-66e2faf6488e' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json'
{- "id": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "organizationId": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "version": 0,
- "name": "LGPD Questionnaire",
- "description": "Was enacted to protect the fundamental rights of freedom and privacy",
- "status": "ACTIVE",
- "createdAt": "2023-12-01T12:34:56.123Z",
- "updatedAt": "2023-12-01T12:34:56.123Z"
}
Update a specific questionnaire for organization. Only organization member should get all questionnaires.
organizationId required | string Organization unique identifier |
questionnaireId required | string Questionnaire unique identifier |
curl -X 'PUT' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-ffff-4000-a000-000000000001/questionnaires/f1b6afa7-0000-1111-2222-66e2faf6488e' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json' --data '{ "name": "Questionário 2 UPDATE - Teste", "description": "### description markdown SUPER ADMIN UPDATE" }'
{- "id": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "organizationId": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "version": 0,
- "name": "LGPD Questionnaire",
- "description": "Was enacted to protect the fundamental rights of freedom and privacy",
- "status": "ACTIVE",
- "createdAt": "2023-12-01T12:34:56.123Z",
- "updatedAt": "2023-12-01T12:34:56.123Z"
}
Publish a new questionnaire for organization. Only organization admin members can create a questionnaire.
organizationId required | string Organization unique identifier |
questionnaireId required | string Questionnaire unique identifier |
curl -X 'POST' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-ffff-4000-a000-000000000001/questionnaires/00000000-ffff-4000-a000-000000000001/publish' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json' \
{- "id": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "organizationId": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "version": 0,
- "name": "LGPD Questionnaire",
- "description": "Was enacted to protect the fundamental rights of freedom and privacy",
- "status": "ACTIVE",
- "createdAt": "2023-12-01T12:34:56.123Z",
- "updatedAt": "2023-12-01T12:34:56.123Z"
}
Send a new questionnaire for organization. Only organization admin members can create a questionnaire.
organizationId required | string Organization unique identifier |
questionnaireId required | string Questionnaire unique identifier |
receiverIds | Array of strings <uuid> (receiverIds) [ items <uuid > ] Questionnaire receiver ids |
receiverTags | Array of strings (Receiver tags) Questionnaire receiver tags |
dueDate | string <date-time> (Due Date) Due date for the assessment |
Array of objects (ContactInformation) Assessment contact information |
{- "receiverIds": [
- "f12345ab-6cd9-ab88-999e-bbdd2266f1b2"
], - "receiverTags": [
- "AnyTag"
], - "dueDate": "2023-12-01T12:34:56.123Z",
- "contactInformation": [
- {
- "name": "carlos",
- "email": "carlos@email.com",
- "phone": "(99)99999999"
}
]
}
true
Get all questionnaire versions. Only members can create a questionnaire.
organizationId required | string Organization unique identifier |
questionnaireId required | string Questionnaire unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-ffff-4000-a000-000000000001/questionnaires/00000000-ffff-4000-a000-000000000001/versions' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json'
{- "data": [
- {
- "id": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "organizationId": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "version": 0,
- "name": "LGPD Questionnaire",
- "description": "Was enacted to protect the fundamental rights of freedom and privacy",
- "status": "ACTIVE",
- "createdAt": "2023-12-01T12:34:56.123Z",
- "updatedAt": "2023-12-01T12:34:56.123Z"
}
]
}
Get a specific questionnaire version. Only members can get a questionnaire.
organizationId required | string Organization unique identifier |
questionnaireId required | string Questionnaire unique identifier |
questionnaireVersion required | number Version unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-ffff-4000-a000-000000000001/questionnaires/00000000-ffff-4000-a000-000000000001/versions/1' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json'
{- "id": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "organizationId": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "version": 0,
- "name": "LGPD Questionnaire",
- "description": "Was enacted to protect the fundamental rights of freedom and privacy",
- "status": "ACTIVE",
- "createdAt": "2023-12-01T12:34:56.123Z",
- "updatedAt": "2023-12-01T12:34:56.123Z"
}
Get questions for a specific questionnaire version. Only members can get a questionnaire.
organizationId required | string Organization unique identifier |
questionnaireId required | string Questionnaire unique identifier |
questionnaireVersion required | number Version unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-ffff-4000-a000-000000000001/questionnaires/00000000-ffff-4000-a000-000000000001/versions/1/questions' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json'
{- "data": [
- {
- "id": "d95f5beb-5c3c-4ee0-96ba-a769c25496fe",
- "organizationId": "d95f5beb-5c3c-4ee0-96ba-a769c25496fe",
- "questionnaireId": "d95f5beb-5c3c-4ee0-96ba-a769c25496fe",
- "questionnaireVersion": 0,
- "order": "a",
- "title": "My Question",
- "description": "Question description",
- "params": {
- "type": "TEXT",
- "required": true,
- "attachmentRequired": true
}
}
]
}
Create a new question for questionnaire. Only members can create a questionnaire.
organizationId required | string Organization unique identifier |
questionnaireId required | string Questionnaire unique identifier |
curl -X 'POST' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-ffff-4000-a000-000000000001/questionnaires/00000000-ffff-4000-a000-000000000001/questions' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json' \ -d '{ "order": "1", "title": "Question 1", "description": "Description 1", "params": ["SINGLE_CHOICE"], }'
{- "id": "d95f5beb-5c3c-4ee0-96ba-a769c25496fe",
- "organizationId": "d95f5beb-5c3c-4ee0-96ba-a769c25496fe",
- "questionnaireId": "d95f5beb-5c3c-4ee0-96ba-a769c25496fe",
- "questionnaireVersion": 0,
- "order": "a",
- "title": "My Question",
- "description": "Question description",
- "params": {
- "type": "TEXT",
- "required": true,
- "attachmentRequired": true
}
}
Only organization members can get all questions for questionnaire. Can be filtered by title, type and required.
organizationId required | string Organization unique identifier |
questionnaireId required | string Questionnaire unique identifier |
title | string Example: title=firstQuestion |
type | string Enum: "TEXT" "SINGLE_CHOICE" "MULTIPLE_CHOICE" Example: type=TEXT |
required | boolean Example: required=true |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-ffff-4000-a000-000000000001/questionnaires/00000000-ffff-4000-a000-000000000001/questions' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json'
{- "data": [
- {
- "id": "d95f5beb-5c3c-4ee0-96ba-a769c25496fe",
- "organizationId": "d95f5beb-5c3c-4ee0-96ba-a769c25496fe",
- "questionnaireId": "d95f5beb-5c3c-4ee0-96ba-a769c25496fe",
- "questionnaireVersion": 0,
- "order": "a",
- "title": "My Question",
- "description": "Question description",
- "params": {
- "type": "TEXT",
- "required": true,
- "attachmentRequired": true
}
}
]
}
Get all assessments for organization. Only organization members can get all assessments. Sortable by questionnaire name, due date, date sent and status. Filterable by questionnaire name, receiver id, sender id, questionnaire id, due date, status.
organizationId required | string Organization unique identifier |
name | string (name) Name of the questionnaire (search) |
questionnaireIds | Array of strings <uuid> (questionnaireIds) [ items <uuid > ] Questionnaire ids, passing an empty array will include assessments from all questionnaires |
statuses | Array of strings (statuses) Items Enum: "NEW" "APPROVED" "REJECTED" "REQUESTED_REVIEW" "REQUESTED_CLARIFICATION" Assessment statuses, passing an empty array will include assessments from all statuses |
reviewStatuses | Array of strings (statuses) Items Enum: "TIMELY" "UNTIMELY" Assessment review statuses, passing an empty array will include assessments from all statuses |
receiverIds | Array of strings <uuid> (receiverIds) [ items <uuid > ] Receiver ids, passing any value (including empty) will return assessments you sent to the specified receivers. Not passing this parameter will exclude all assessments that you are the sender. |
senderIds | Array of strings <uuid> (senderIds) [ items <uuid > ] Sender ids, passing any value (including empty) will return assessments you received from the specified senders. Not passing this parameter will exclude all assessments that you are the receiver. |
dueDateStart | string <date-time> (dueDateStart) Only assessments with a due date after this date will be included in the response. |
dueDateEnd | string <date-time> (dueDateEnd) Only assessments with a due date before this date will be included in the response. |
order | string (order) Enum: "status" "dueDate" "updatedAt" "name" "createdAt" "senderId" Order by field |
sort | string (sort) Enum: "asc" "desc" Sort order |
object (pagination) Results pagination |
{- "name": "myQuestionnaire",
- "questionnaireIds": [
- "f12345ab-6cd9-ab88-999e-bbdd2266f1b2"
], - "statuses": [
- "NEW"
], - "reviewStatuses": [
- "TIMELY"
], - "receiverIds": [
- "f12345ab-6cd9-ab88-999e-bbdd2266f1b2"
], - "senderIds": [
- "f12345ab-6cd9-ab88-999e-bbdd2266f1b2"
], - "dueDateStart": "2020-01-15T11:30:59.123Z",
- "dueDateEnd": "2020-01-15T11:30:59.123Z",
- "order": "status",
- "sort": "asc",
- "pagination": {
- "page": 1,
- "size": 25
}
}
{- "id": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "questionnaireId": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "questionnaireVersion": 0,
- "senderId": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "receiverId": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "name": "LGPD Questionnaire",
- "description": "Was enacted to protect the fundamental rights of freedom and privacy",
- "dueDate": "2023-12-01T12:34:56.123Z",
- "firstRequestedReviewAt": "2023-12-01T11:11:11.123Z",
- "status": "NEW",
- "createdAt": "2023-12-01T12:34:56.123Z",
- "updatedAt": "2023-12-01T12:34:56.123Z"
}
Get a specific assessment for an organization. Only organization members can get an assessment.
organizationId required | string Organization unique identifier |
assessmentId required | string Assessment unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-ffff-4000-a000-000000000001/assessments/00000000-ffff-4000-a000-000000000001' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json'
{- "id": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "questionnaireId": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "questionnaireVersion": 0,
- "senderId": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "receiverId": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "name": "LGPD Questionnaire",
- "description": "Was enacted to protect the fundamental rights of freedom and privacy",
- "dueDate": "2023-12-01T12:34:56.123Z",
- "firstRequestedReviewAt": "2023-12-01T11:11:11.123Z",
- "status": "NEW",
- "createdAt": "2023-12-01T12:34:56.123Z",
- "updatedAt": "2023-12-01T12:34:56.123Z"
}
Update assessment status. Only organization members can update an assessment.
organizationId required | string Organization unique identifier |
assessmentId required | string Assessment unique identifier |
status required | string (AssessmentStatusProp) Enum: "NEW" "REQUESTED_REVIEW" "REQUESTED_CLARIFICATION" "APPROVED" "REJECTED" Assessment Status |
{- "status": "REQUESTED_REVIEW"
}
true
Get a question by id for a given questionnaire. Only organization members can get a question.
organizationId required | string Organization unique identifier |
questionnaireId required | string Questionnaire unique identifier |
questionId required | string Question unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-ffff-4000-a000-000000000001/questionnaires/00000000-ffff-4000-a000-000000000001/questions/00000007-ffff-4000-a000-000000000007' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json' \
{- "id": "d95f5beb-5c3c-4ee0-96ba-a769c25496fe",
- "organizationId": "d95f5beb-5c3c-4ee0-96ba-a769c25496fe",
- "questionnaireId": "d95f5beb-5c3c-4ee0-96ba-a769c25496fe",
- "questionnaireVersion": 0,
- "order": "a",
- "title": "My Question",
- "description": "Question description",
- "params": {
- "type": "TEXT",
- "required": true,
- "attachmentRequired": true
}
}
Update a question for a questionnaire. Only organization members can create questions.
organizationId required | string Organization unique identifier |
questionnaireId required | string Questionnaire unique identifier |
questionId required | string Question unique identifier |
curl -X 'PUT' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-ffff-4000-a000-000000000001/questionnaires/00000000-ffff-4000-a000-000000000001/questions/30624c82-ff7a-4240-8137-17d9faf6ccbe' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json' \ -d '{ "order": "1", "title": "Question 1", "description": "Description 1", "params": ["SINGLE_CHOICE"], }'
{- "id": "d95f5beb-5c3c-4ee0-96ba-a769c25496fe",
- "organizationId": "d95f5beb-5c3c-4ee0-96ba-a769c25496fe",
- "questionnaireId": "d95f5beb-5c3c-4ee0-96ba-a769c25496fe",
- "questionnaireVersion": 0,
- "order": "a",
- "title": "My Question",
- "description": "Question description",
- "params": {
- "type": "TEXT",
- "required": true,
- "attachmentRequired": true
}
}
Delete a question from a questionnaire. Only organization members can delete questions.
organizationId required | string Organization unique identifier |
questionnaireId required | string Questionnaire unique identifier |
questionId required | string Question unique identifier |
curl -X 'DELETE' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-ffff-4000-a000-000000000001/questionnaires/00000000-ffff-4000-a000-000000000001/questions/qid' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json' \
true
Get all schedules for a questionnaire given both the organization and questionnaire Ids.
organizationId required | string Organization unique identifier |
questionnaireId required | string Questionnaire unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-ffff-4000-a000-000000000001/questionnaires/f1b6afa7-0000-1111-2222-66e2faf6488e/schedules' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json'
{- "data": [
- {
- "id": "058d35d5-1e41-4ff9-8768-c76aa7009fed",
- "questionnaireId": "53c4706f-55c8-4f91-81ee-3fb773fc219b",
- "organizationId": "00000000-0000-4000-a000-000000000001",
- "name": "Daily questionnaire schedule",
- "frequency": "MONTHLY",
- "dueDays": 5,
- "receiverTags": [
- "AnyTag"
], - "createdAt": "2021-01-01T12:34:56.123Z",
- "updatedAt": "2022-01-15T12:34:56.123Z"
}
]
}
Create a new schedule for the questionnaire.
organizationId required | string Organization unique identifier |
questionnaireId required | string Questionnaire unique identifier |
name | string (QuestionnaireScheduleNameProps) Questionnaire schedule name |
frequency | string (QuestionnaireScheduleFrequencyProps) Enum: "MONTHLY" "QUARTERLY" "SEMESTRAL" "YEARLY" Questionnaire schedule |
dueDays | number (QuestionnaireScheduleDueDaysProps) <= 365 Questionnaire schedule due days |
receiverTags | Array of strings (QuestionnaireScheduleReceiverTagsProps) Questionnaire schedule receiver tags |
Array of objects (QuestionnaireContactInformationProps) Assessment contact information |
{- "name": "Daily questionnaire schedule",
- "frequency": "MONTHLY",
- "dueDays": 5,
- "receiverTags": [
- "AnyTag"
], - "contactInformation": [
- {
- "name": "carlos",
- "email": "carlos@email.com",
- "phone": "(99)99999999"
}
]
}
{- "id": "058d35d5-1e41-4ff9-8768-c76aa7009fed",
- "questionnaireId": "53c4706f-55c8-4f91-81ee-3fb773fc219b",
- "organizationId": "00000000-0000-4000-a000-000000000001",
- "name": "Daily questionnaire schedule",
- "frequency": "MONTHLY",
- "dueDays": 5,
- "receiverTags": [
- "AnyTag"
], - "createdAt": "2021-01-01T12:34:56.123Z",
- "updatedAt": "2022-01-15T12:34:56.123Z"
}
Get a specific questionnaire schedule given the organization, questionnaire and questionnaire schedule Ids.
organizationId required | string Organization unique identifier |
questionnaireId required | string Questionnaire unique identifier |
questionnaireScheduleId required | string Questionnaire Schedule unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-ffff-4000-a000-000000000001/questionnaires/f1b6afa7-0000-1111-2222-66e2faf6488e/schedules/d95d5785-335e-472a-bd30-0b6c9164c49b' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json'
{- "id": "058d35d5-1e41-4ff9-8768-c76aa7009fed",
- "questionnaireId": "53c4706f-55c8-4f91-81ee-3fb773fc219b",
- "organizationId": "00000000-0000-4000-a000-000000000001",
- "name": "Daily questionnaire schedule",
- "frequency": "MONTHLY",
- "dueDays": 5,
- "receiverTags": [
- "AnyTag"
], - "createdAt": "2021-01-01T12:34:56.123Z",
- "updatedAt": "2022-01-15T12:34:56.123Z"
}
Update a questionnaire schedule.
organizationId required | string Organization unique identifier |
questionnaireId required | string Questionnaire unique identifier |
questionnaireScheduleId required | string Questionnaire Schedule unique identifier |
name | string (QuestionnaireScheduleNameProps) Questionnaire schedule name |
frequency | string (QuestionnaireScheduleFrequencyProps) Enum: "MONTHLY" "QUARTERLY" "SEMESTRAL" "YEARLY" Questionnaire schedule |
dueDays | number (QuestionnaireScheduleDueDaysProps) <= 365 Questionnaire schedule due days |
receiverTags | Array of strings (QuestionnaireScheduleReceiverTagsProps) Questionnaire schedule receiver tags |
Array of objects (QuestionnaireContactInformationProps) Assessment contact information |
{- "name": "Daily questionnaire schedule",
- "frequency": "MONTHLY",
- "dueDays": 5,
- "receiverTags": [
- "AnyTag"
], - "contactInformation": [
- {
- "name": "carlos",
- "email": "carlos@email.com",
- "phone": "(99)99999999"
}
]
}
{- "id": "058d35d5-1e41-4ff9-8768-c76aa7009fed",
- "questionnaireId": "53c4706f-55c8-4f91-81ee-3fb773fc219b",
- "organizationId": "00000000-0000-4000-a000-000000000001",
- "name": "Daily questionnaire schedule",
- "frequency": "MONTHLY",
- "dueDays": 5,
- "receiverTags": [
- "AnyTag"
], - "createdAt": "2021-01-01T12:34:56.123Z",
- "updatedAt": "2022-01-15T12:34:56.123Z"
}
Remove a questionnaire schedule given the organization, questionnaire and questionnaire schedule Ids.
organizationId required | string Organization unique identifier |
questionnaireId required | string Questionnaire unique identifier |
questionnaireScheduleId required | string Questionnaire Schedule unique identifier |
curl -X 'DELETE' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-ffff-4000-a000-000000000001/questionnaires/f1b6afa7-0000-1111-2222-66e2faf6488e/schedules/d95d5785-335e-472a-bd30-0b6c9164c49b' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \
true
Updates the status for the questionnaire.
organizationId required | string Organization unique identifier |
questionnaireId required | string Questionnaire unique identifier |
status required | string (QuestionnaireStatusProp) Enum: "ACTIVE" "INACTIVE" Questionnaire Status |
{- "status": "ACTIVE"
}
{- "id": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "organizationId": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "version": 0,
- "name": "LGPD Questionnaire",
- "description": "Was enacted to protect the fundamental rights of freedom and privacy",
- "status": "ACTIVE",
- "createdAt": "2023-12-01T12:34:56.123Z",
- "updatedAt": "2023-12-01T12:34:56.123Z"
}
Get questions and answers for an assessment. Can be sorted by answer status and filtered by answer status and question title.
organizationId required | string Organization unique identifier |
assessmentId required | string Assessment unique identifier |
order | string Value: "status" Example: order=status |
sort | string Enum: "asc" "desc" Example: sort=asc |
title | string Example: title=myQuestion |
status | string Enum: "NEW" "APPROVED" "REJECTED" "REQUESTED_REVIEW" "REQUESTED_CLARIFICATION" Example: status=NEW |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-ffff-4000-a000-000000000001/assessments/00000000-ffff-4000-a000-000000000001/questions' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json'
{- "data": {
- "id": "d95f5beb-5c3c-4ee0-96ba-a769c25496fe",
- "order": "a",
- "title": "My Question",
- "description": "Question description",
- "params": {
- "type": "TEXT",
- "required": true,
- "attachmentRequired": true
}, - "answer": {
- "assessmentId": "a8fb2f5b-34d7-4457-a9ac-2010c7e8c8fc",
- "questionId": "d95f5beb-5c3c-4ee0-96ba-a769c25496fe",
- "questionnaireId": "99fa643d-45fb-4bf6-9208-3d7319a8ab21",
- "questionnaireVersion": 0,
- "senderId": "00000000-0000-4000-a000-000000000001",
- "receiverId": "00000000-0000-4000-a000-000000000002",
- "content": {
- "type": "TEXT",
- "text": "Text Answer"
}, - "status": "NEW",
- "createdAt": "2021-01-01T12:34:56.123Z",
- "updatedAt": "2022-01-15T12:34:56.123Z"
}, - "commentCount": 0
}
}
An endpoint to get summarized data on assessments sent by the time spent waiting for response. The assessments are grouped by days from 0 to 12+. Can be filtered by assessments createdAt date.
organizationId required | string Organization unique identifier |
createdAfterStart | string <date-time> Example: createdAfterStart=2024-01-15 |
createdAfterEnd | string <date-time> Example: createdAfterEnd=2024-02-15 |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-ffff-4000-a000-000000000001/summary/assessments' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json' \
{- "data": [
- {
- "daysWaiting": 0,
- "new": {
- "timely": 3,
- "untimely": 5
}, - "approved": {
- "timely": 3,
- "untimely": 5
}, - "rejected": {
- "timely": 3,
- "untimely": 5
}, - "requestedReview": {
- "timely": 3,
- "untimely": 5
}, - "requestedClarification": {
- "timely": 3,
- "untimely": 5
}, - "requestedDebate": {
- "timely": 3,
- "untimely": 5
}
}, - {
- "daysWaiting": 1,
- "new": {
- "timely": 3,
- "untimely": 5
}, - "approved": {
- "timely": 3,
- "untimely": 5
}, - "rejected": {
- "timely": 3,
- "untimely": 5
}, - "requestedReview": {
- "timely": 3,
- "untimely": 5
}, - "requestedClarification": {
- "timely": 3,
- "untimely": 5
}, - "requestedDebate": {
- "timely": 3,
- "untimely": 5
}
}, - {
- "daysWaiting": 2,
- "new": {
- "timely": 3,
- "untimely": 5
}, - "approved": {
- "timely": 3,
- "untimely": 5
}, - "rejected": {
- "timely": 3,
- "untimely": 5
}, - "requestedReview": {
- "timely": 3,
- "untimely": 5
}, - "requestedClarification": {
- "timely": 3,
- "untimely": 5
}, - "requestedDebate": {
- "timely": 3,
- "untimely": 5
}
}, - {
- "daysWaiting": 3,
- "new": {
- "timely": 3,
- "untimely": 5
}, - "approved": {
- "timely": 3,
- "untimely": 5
}, - "rejected": {
- "timely": 3,
- "untimely": 5
}, - "requestedReview": {
- "timely": 3,
- "untimely": 5
}, - "requestedClarification": {
- "timely": 3,
- "untimely": 5
}, - "requestedDebate": {
- "timely": 3,
- "untimely": 5
}
}, - {
- "daysWaiting": 4,
- "new": {
- "timely": 3,
- "untimely": 5
}, - "approved": {
- "timely": 3,
- "untimely": 5
}, - "rejected": {
- "timely": 3,
- "untimely": 5
}, - "requestedReview": {
- "timely": 3,
- "untimely": 5
}, - "requestedClarification": {
- "timely": 3,
- "untimely": 5
}, - "requestedDebate": {
- "timely": 3,
- "untimely": 5
}
}, - {
- "daysWaiting": 5,
- "new": {
- "timely": 3,
- "untimely": 5
}, - "approved": {
- "timely": 3,
- "untimely": 5
}, - "rejected": {
- "timely": 3,
- "untimely": 5
}, - "requestedReview": {
- "timely": 3,
- "untimely": 5
}, - "requestedClarification": {
- "timely": 3,
- "untimely": 5
}, - "requestedDebate": {
- "timely": 3,
- "untimely": 5
}
}, - {
- "daysWaiting": 6,
- "new": {
- "timely": 3,
- "untimely": 5
}, - "approved": {
- "timely": 3,
- "untimely": 5
}, - "rejected": {
- "timely": 3,
- "untimely": 5
}, - "requestedReview": {
- "timely": 3,
- "untimely": 5
}, - "requestedClarification": {
- "timely": 3,
- "untimely": 5
}, - "requestedDebate": {
- "timely": 3,
- "untimely": 5
}
}, - {
- "daysWaiting": 7,
- "new": {
- "timely": 3,
- "untimely": 5
}, - "approved": {
- "timely": 3,
- "untimely": 5
}, - "rejected": {
- "timely": 3,
- "untimely": 5
}, - "requestedReview": {
- "timely": 3,
- "untimely": 5
}, - "requestedClarification": {
- "timely": 3,
- "untimely": 5
}, - "requestedDebate": {
- "timely": 3,
- "untimely": 5
}
}, - {
- "daysWaiting": 8,
- "new": {
- "timely": 3,
- "untimely": 5
}, - "approved": {
- "timely": 3,
- "untimely": 5
}, - "rejected": {
- "timely": 3,
- "untimely": 5
}, - "requestedReview": {
- "timely": 3,
- "untimely": 5
}, - "requestedClarification": {
- "timely": 3,
- "untimely": 5
}, - "requestedDebate": {
- "timely": 3,
- "untimely": 5
}
}, - {
- "daysWaiting": 9,
- "new": {
- "timely": 3,
- "untimely": 5
}, - "approved": {
- "timely": 3,
- "untimely": 5
}, - "rejected": {
- "timely": 3,
- "untimely": 5
}, - "requestedReview": {
- "timely": 3,
- "untimely": 5
}, - "requestedClarification": {
- "timely": 3,
- "untimely": 5
}, - "requestedDebate": {
- "timely": 3,
- "untimely": 5
}
}, - {
- "daysWaiting": 10,
- "new": {
- "timely": 3,
- "untimely": 5
}, - "approved": {
- "timely": 3,
- "untimely": 5
}, - "rejected": {
- "timely": 3,
- "untimely": 5
}, - "requestedReview": {
- "timely": 3,
- "untimely": 5
}, - "requestedClarification": {
- "timely": 3,
- "untimely": 5
}, - "requestedDebate": {
- "timely": 3,
- "untimely": 5
}
}, - {
- "daysWaiting": 11,
- "new": {
- "timely": 3,
- "untimely": 5
}, - "approved": {
- "timely": 3,
- "untimely": 5
}, - "rejected": {
- "timely": 3,
- "untimely": 5
}, - "requestedReview": {
- "timely": 3,
- "untimely": 5
}, - "requestedClarification": {
- "timely": 3,
- "untimely": 5
}, - "requestedDebate": {
- "timely": 3,
- "untimely": 5
}
}, - {
- "daysWaiting": 12,
- "new": {
- "timely": 3,
- "untimely": 5
}, - "approved": {
- "timely": 3,
- "untimely": 5
}, - "rejected": {
- "timely": 3,
- "untimely": 5
}, - "requestedReview": {
- "timely": 3,
- "untimely": 5
}, - "requestedClarification": {
- "timely": 3,
- "untimely": 5
}, - "requestedDebate": {
- "timely": 3,
- "untimely": 5
}
}
]
}
Get all assessments comments.
organizationId required | string Organization unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-ffff-4000-a000-000000000001/assessments/comments' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json'
{- "data": [
- {
- "id": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "organizationId": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "content": "Assessment comment",
- "createdAt": "2021-01-01T12:34:56.123Z"
}
]
}
Create assessment comments.
organizationId required | string Organization unique identifier |
content required | string <markdown> (Content) Assessment comment content |
{- "content": "Assessment comment"
}
{- "id": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "organizationId": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "content": "Assessment comment",
- "createdAt": "2021-01-01T12:34:56.123Z"
}
Get the answer for a question of an assessment
organizationId required | string Organization unique identifier |
assessmentId required | string Assessment unique identifier |
questionId required | string Question unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-ffff-4000-a000-000000000001/assessments/00000000-ffff-4000-a000-000000000001/questions/00000000-ffff-4000-a000-000000000001' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json'
{- "id": "d95f5beb-5c3c-4ee0-96ba-a769c25496fe",
- "order": "a",
- "title": "My Question",
- "description": "Question description",
- "params": {
- "type": "TEXT",
- "required": true,
- "attachmentRequired": true
}, - "answer": {
- "assessmentId": "a8fb2f5b-34d7-4457-a9ac-2010c7e8c8fc",
- "questionId": "d95f5beb-5c3c-4ee0-96ba-a769c25496fe",
- "questionnaireId": "99fa643d-45fb-4bf6-9208-3d7319a8ab21",
- "questionnaireVersion": 0,
- "senderId": "00000000-0000-4000-a000-000000000001",
- "receiverId": "00000000-0000-4000-a000-000000000002",
- "content": {
- "type": "TEXT",
- "text": "Text Answer"
}, - "status": "NEW",
- "createdAt": "2021-01-01T12:34:56.123Z",
- "updatedAt": "2022-01-15T12:34:56.123Z"
}, - "commentCount": 0
}
Create question answer.
organizationId required | string Organization unique identifier |
assessmentId required | string Assessment unique identifier |
questionId required | string Question unique identifier |
Content (object) or Content (object) or Content (object) (AnswerContentProps) |
{- "content": {
- "type": "TEXT",
- "text": "Text Answer"
}
}
{- "content": {
- "type": "TEXT",
- "text": "Text Answer"
}, - "status": "NEW",
- "createdAt": "2021-01-01T12:34:56.123Z",
- "updatedAt": "2022-01-15T12:34:56.123Z"
}
Updates the answer status for a question.
organizationId required | string Organization unique identifier |
assessmentId required | string Assessment unique identifier |
questionId required | string Question unique identifier |
status required | string (AnswerStatusProps) Enum: "NEW" "APPROVED" "REJECTED" "REQUESTED_REVIEW" "REQUESTED_CLARIFICATION" |
object |
{- "status": "NEW",
- "comment": {
- "content": "Assessment comment"
}
}
{- "content": {
- "type": "TEXT",
- "text": "Text Answer"
}, - "status": "NEW",
- "createdAt": "2021-01-01T12:34:56.123Z",
- "updatedAt": "2022-01-15T12:34:56.123Z"
}
Get all assessment comments for a question.
organizationId required | string Organization unique identifier |
assessmentId required | string Assessment unique identifier |
questionId required | string Question unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-ffff-4000-a000-000000000001/assessments/00000000-ffff-4000-a000-000000000001/questions/00000000-ffff-4000-a000-000000000001/comments' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json'
{- "data": [
- {
- "id": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "organizationId": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "content": "Assessment comment",
- "createdAt": "2021-01-01T12:34:56.123Z"
}
]
}
Create an assessment comment for a question.
organizationId required | string Organization unique identifier |
assessmentId required | string Assessment unique identifier |
questionId required | string Question unique identifier |
content required | string <markdown> (Content) Assessment comment content |
{- "content": "Assessment comment"
}
{- "id": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "organizationId": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "content": "Assessment comment",
- "createdAt": "2021-01-01T12:34:56.123Z"
}
Create a new element for questionnaire.
organizationId required | string Organization unique identifier |
questionnaireId required | string Questionnaire unique identifier |
type required | string (Type) Enum: "QUESTION" "SECTION" Element type |
order required | string (Order) Elements order |
required | QuestionProps (object) or SectionProps (object) (Props) |
{- "type": "QUESTION",
- "order": "a",
- "props": {
- "title": "My Question",
- "description": "Question description",
- "params": {
- "type": "TEXT",
- "required": true,
- "attachmentRequired": true
}
}
}
{- "id": "d95f5beb-5c3c-4ee0-96ba-a769c25496fe",
- "questionnaireId": "99fa643d-45fb-4bf6-9208-3d7319a8ab21",
- "organizationId": "e81086d0-060e-4bdb-8c56-f9c99a23ea91",
- "questionnaireVersion": 0,
- "order": "a",
- "type": "QUESTION",
- "props": {
- "title": "My Question",
- "description": "Question description",
- "params": {
- "type": "TEXT",
- "required": true,
- "attachmentRequired": true
}
}, - "createdAt": "2021-01-01T12:34:56.123Z",
- "updatedAt": "2022-01-15T12:34:56.123Z"
}
Only organization members can get all elements for questionnaire.
organizationId required | string Organization unique identifier |
questionnaireId required | string Questionnaire unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-ffff-4000-a000-000000000001/questionnaires/00000000-ffff-4000-a000-000000000001/elements' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json'
{- "data": [
- {
- "id": "d95f5beb-5c3c-4ee0-96ba-a769c25496fe",
- "questionnaireId": "99fa643d-45fb-4bf6-9208-3d7319a8ab21",
- "organizationId": "e81086d0-060e-4bdb-8c56-f9c99a23ea91",
- "questionnaireVersion": 0,
- "order": "a",
- "type": "QUESTION",
- "props": {
- "title": "My Question",
- "description": "Question description",
- "params": {
- "type": "TEXT",
- "required": true,
- "attachmentRequired": true
}
}, - "createdAt": "2021-01-01T12:34:56.123Z",
- "updatedAt": "2022-01-15T12:34:56.123Z"
}
]
}
Get a element by id for a given questionnaire. Only organization members can get a element.
organizationId required | string Organization unique identifier |
questionnaireId required | string Questionnaire unique identifier |
elementId required | string Element unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-ffff-4000-a000-000000000001/questionnaires/00000000-ffff-4000-a000-000000000001/elements/00000007-ffff-4000-a000-000000000007' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json' \
{- "id": "d95f5beb-5c3c-4ee0-96ba-a769c25496fe",
- "questionnaireId": "99fa643d-45fb-4bf6-9208-3d7319a8ab21",
- "organizationId": "e81086d0-060e-4bdb-8c56-f9c99a23ea91",
- "questionnaireVersion": 0,
- "order": "a",
- "type": "QUESTION",
- "props": {
- "title": "My Question",
- "description": "Question description",
- "params": {
- "type": "TEXT",
- "required": true,
- "attachmentRequired": true
}
}, - "createdAt": "2021-01-01T12:34:56.123Z",
- "updatedAt": "2022-01-15T12:34:56.123Z"
}
Update an element for a questionnaire. Only organization members can update elements.
organizationId required | string Organization unique identifier |
questionnaireId required | string Questionnaire unique identifier |
elementId required | string Element unique identifier |
type required | string (Type) Enum: "QUESTION" "SECTION" Element type |
order required | string (Order) Elements order |
required | QuestionProps (object) or SectionProps (object) (Props) |
{- "type": "QUESTION",
- "order": "a",
- "props": {
- "title": "My Question",
- "description": "Question description",
- "params": {
- "type": "TEXT",
- "required": true,
- "attachmentRequired": true
}
}
}
{- "id": "d95f5beb-5c3c-4ee0-96ba-a769c25496fe",
- "questionnaireId": "99fa643d-45fb-4bf6-9208-3d7319a8ab21",
- "organizationId": "e81086d0-060e-4bdb-8c56-f9c99a23ea91",
- "questionnaireVersion": 0,
- "order": "a",
- "type": "QUESTION",
- "props": {
- "title": "My Question",
- "description": "Question description",
- "params": {
- "type": "TEXT",
- "required": true,
- "attachmentRequired": true
}
}, - "createdAt": "2021-01-01T12:34:56.123Z",
- "updatedAt": "2022-01-15T12:34:56.123Z"
}
Delete an element from a questionnaire. Only organization members can delete elements.
organizationId required | string Organization unique identifier |
questionnaireId required | string Questionnaire unique identifier |
elementId required | string Element unique identifier |
curl -X 'DELETE' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-ffff-4000-a000-000000000001/questionnaires/00000000-ffff-4000-a000-000000000001/elements/00000007-ffff-4000-a000-000000000007' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json' \
true
Get elements for a specific questionnaire version.
organizationId required | string Organization unique identifier |
questionnaireId required | string Questionnaire unique identifier |
questionnaireVersion required | number Version unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-ffff-4000-a000-000000000001/questionnaires/00000000-ffff-4000-a000-000000000001/versions/1/elements' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json'
{- "data": [
- {
- "id": "d95f5beb-5c3c-4ee0-96ba-a769c25496fe",
- "questionnaireId": "99fa643d-45fb-4bf6-9208-3d7319a8ab21",
- "organizationId": "e81086d0-060e-4bdb-8c56-f9c99a23ea91",
- "questionnaireVersion": 0,
- "order": "a",
- "type": "QUESTION",
- "props": {
- "title": "My Question",
- "description": "Question description",
- "params": {
- "type": "TEXT",
- "required": true,
- "attachmentRequired": true
}
}, - "createdAt": "2021-01-01T12:34:56.123Z",
- "updatedAt": "2022-01-15T12:34:56.123Z"
}
]
}
Clones a specific questionnaire for organization.
organizationId required | string Organization unique identifier |
questionnaireId required | string Questionnaire unique identifier |
questionnaireVersion required | number Version unique identifier |
name | string (Name) Questionnaire name |
{- "name": "LGPD Questionnaire"
}
{- "id": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "organizationId": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "version": 0,
- "name": "LGPD Questionnaire",
- "description": "Was enacted to protect the fundamental rights of freedom and privacy",
- "status": "ACTIVE",
- "createdAt": "2023-12-01T12:34:56.123Z",
- "updatedAt": "2023-12-01T12:34:56.123Z"
}
Only organization members can get elements for an assessment.
organizationId required | string Organization unique identifier |
assessmentId required | string Assessment unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-ffff-4000-a000-000000000001/assessments/00000000-ffff-4000-a000-000000000001/elements' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json'
{- "data": [
- {
- "id": "d95f5beb-5c3c-4ee0-96ba-a769c25496fe",
- "order": "a",
- "type": "QUESTION",
- "props": {
- "title": "My Question",
- "description": "Question description",
- "params": {
- "type": "TEXT",
- "required": true,
- "attachmentRequired": true
}
}, - "answer": {
- "content": {
- "type": "TEXT",
- "text": "Text Answer"
}, - "status": "NEW",
- "createdAt": "2021-01-01T12:34:56.123Z",
- "updatedAt": "2022-01-15T12:34:56.123Z"
}, - "commentCount": 0
}
]
}
Only organization members can get an element for an assessment.
organizationId required | string Organization unique identifier |
assessmentId required | string Assessment unique identifier |
elementId required | string Element unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-ffff-4000-a000-000000000001/assessments/00000000-ffff-4000-a000-000000000001/elements/00000000-ffff-4000-a000-000000000001' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json'
{- "id": "d95f5beb-5c3c-4ee0-96ba-a769c25496fe",
- "order": "a",
- "type": "QUESTION",
- "props": {
- "title": "My Question",
- "description": "Question description",
- "params": {
- "type": "TEXT",
- "required": true,
- "attachmentRequired": true
}
}, - "answer": {
- "content": {
- "type": "TEXT",
- "text": "Text Answer"
}, - "status": "NEW",
- "createdAt": "2021-01-01T12:34:56.123Z",
- "updatedAt": "2022-01-15T12:34:56.123Z"
}, - "commentCount": 0
}
gets assessment history.
organizationId required | string <uuid> (organization.OrganizationId) Organization Id. |
assessmentId required | string <uuid> (questionnaire.AssessmentId) Assessment Id. |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "type": "ASSESSMENT_SENT",
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "questionId": "ffa0420e-f70b-4e5b-99a0-434bff860467",
- "content": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "accessControl": {
- "type": "PUBLIC"
}, - "status": "NEW",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "_TTL": 0
}
]
}, - "metadata": {
- "principalId": "0a52818d-1e0c-4e64-848e-4d04f9e914e5",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
], - "cursor": "string"
}
gets assessment questions history.
organizationId required | string <uuid> (organization.OrganizationId) Organization Id. |
assessmentId required | string <uuid> (questionnaire.AssessmentId) Assessment Id. |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "type": "ASSESSMENT_SENT",
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "questionId": "ffa0420e-f70b-4e5b-99a0-434bff860467",
- "content": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "accessControl": {
- "type": "PUBLIC"
}, - "status": "NEW",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "_TTL": 0
}
]
}, - "metadata": {
- "principalId": "0a52818d-1e0c-4e64-848e-4d04f9e914e5",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
], - "cursor": "string"
}
Lists all organization members given the organization ID.
organizationId required | string Organization unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-0000-4000-a000-000000000002/members' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
[- {
- "userId": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "name": "Niten Ichi-ryu",
- "email": "niten_doraku@edo.com",
- "roles": [
- "ADMIN"
], - "identityProvider": "auth0",
- "loginsCount": 23,
- "lastIp": "192.168.0.1",
- "lastLogin": "1645-06-13T12:34:56.123Z",
- "updatedAt": "2022-01-15T12:34:56.123Z",
- "createdAt": "2021-01-01T12:34:56.123Z"
}
]
Gets a user data if and only if the user is a member of the organization given both IDs. Data will only be returned if the logged user is an organization administrator and the user is a member of the organization.
organizationId required | string Organization unique identifier |
userId required | string User unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/{orgId}/members/{userId}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
[- {
- "userId": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "name": "Niten Ichi-ryu",
- "email": "niten_doraku@edo.com",
- "roles": [
- "ADMIN"
], - "identityProvider": "auth0",
- "loginsCount": 23,
- "lastIp": "192.168.0.1",
- "lastLogin": "1645-06-13T12:34:56.123Z",
- "updatedAt": "2022-01-15T12:34:56.123Z",
- "createdAt": "2021-01-01T12:34:56.123Z"
}
]
Makes an user an admin or removes admin for an user. The requesting user must be an organization administrator to use this endpoint.
organizationId required | string Organization unique identifier |
userId required | string User unique identifier |
Organization member body
roles | Array of strings (roles) New roles |
{- "roles": [
- "ADMIN"
]
}
{- "userId": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "name": "Niten Ichi-ryu",
- "email": "niten_doraku@edo.com",
- "roles": [
- "ADMIN"
], - "identityProvider": "auth0",
- "loginsCount": 23,
- "lastIp": "192.168.0.1",
- "lastLogin": "1645-06-13T12:34:56.123Z",
- "updatedAt": "2022-01-15T12:34:56.123Z",
- "createdAt": "2021-01-01T12:34:56.123Z"
}
Removes and user form a organization given both IDs. The logged user must be an organization administrator to invoke this endpoint. The target user must currently be and organization member for anything to happen.
organizationId required | string Organization unique identifier |
userId required | string User unique identifier |
curl -X 'DELETE' \ 'https://api.zanshin.tenchisecurity.com/organizations/{orgId}/members/{userId}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
true
Lists all pending invitations that an organization has given its ID. The logged user must be an organization administrator to fetch the data.
organizationId required | string Organization unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/{orgId}/invites' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
[- {
- "organizationId": "00000000-0000-4000-a000-000000000001",
- "organizationName": "Niten Ichi-ryu",
- "email": "niten_doraku@edo.com",
- "roles": [ ],
- "expiredAt": "2021-06-01T12:34:56.123Z",
- "createdAt": "2021-01-13T12:34:56.123Z"
}
]
Issues an invitation from the given organization (informed as a path param) to a target (informed on the body). The logged user must be an administrator of the organization informed as a path param to invoke this endpoint.
organizationId required | string Organization unique identifier |
Invite data
string (email) Email to invite | |
roles | Array of strings (roles) New roles |
{- "email": "niten_doraku@edo.com",
- "roles": [ ]
}
{- "organizationId": "00000000-0000-4000-a000-000000000001",
- "organizationName": "Niten Ichi-ryu",
- "email": "niten_doraku@edo.com",
- "roles": [ ],
- "expiredAt": "2021-06-01T12:34:56.123Z",
- "createdAt": "2021-01-13T12:34:56.123Z"
}
Lists all invites made to a informed email on behalf of the informed organization. The logged user must be an administratir of the organization.
organizationId required | string Organization unique identifier |
email required | string <email> User registered email |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/{orgId}/invites/{email}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
{- "organizationId": "00000000-0000-4000-a000-000000000001",
- "organizationName": "Niten Ichi-ryu",
- "email": "niten_doraku@edo.com",
- "roles": [ ],
- "expiredAt": "2021-06-01T12:34:56.123Z",
- "createdAt": "2021-01-13T12:34:56.123Z"
}
Invalidates an invite made to the informed email on behalf of the informed organization. The logged user must be an administratir of the organization ti use this endpoint.
organizationId required | string Organization unique identifier |
email required | string <email> User registered email |
curl -X 'DELETE' \ 'https://api.zanshin.tenchisecurity.com/organizations/{orgId}/invites/{email}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
true
Resends an invite made to the informed email on behalf of the informed organization. The logged user must be an administrator of the organization to use this endpoint.
organizationId required | string Organization unique identifier |
email required | string <email> User registered email |
curl -X 'POST' \ 'https://api.zanshin.tenchisecurity.com/organizations/{orgId}/invites/{email}/resend' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -d ''
true
An email will be sent to the user with instructions for resetting the MFA.
organizationId required | string Organization unique identifier |
userId required | string User unique identifier |
curl -X 'POST' \ 'https://api.zanshin.tenchisecurity.com/organizations/{orgId}/members/{userId}/mfa/reset' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -d ''
true
An email will be sent to the user with instructions for resetting the password.
organizationId required | string Organization unique identifier |
userId required | string User unique identifier |
curl -X 'POST' \ 'https://api.zanshin.tenchisecurity.com/organizations/{orgId}/members/{userId}/password/reset' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -d ''
true
Lists all organization followers given the organization ID. The logged user must be an administrator of the organization to use this endpoint.
organizationId required | string Organization unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/{orgId}/followers' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
[- {
- "id": "00000000-0000-4000-a000-000000000001",
- "name": "Niten Ichi-ryu",
- "status": "ACTIVE",
- "share": {
- "mode": "SCAN_TARGET_TAGS",
- "scanTargetTags": [
- "twoheavens",
- "swordsmanship"
]
}, - "score": "79",
- "updatedAt": "2022-01-15T12:34:56.123Z",
- "createdAt": "2021-01-01T12:34:56.123Z"
}
]
Get details for the follower.
organizationId required | string Organization unique identifier |
followerId required | string A follower organization unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/{orgId}/follower/{followerId}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
{- "id": "00000000-0000-4000-a000-000000000001",
- "name": "Niten Ichi-ryu",
- "status": "ACTIVE",
- "share": {
- "mode": "SCAN_TARGET_TAGS",
- "scanTargetTags": [
- "twoheavens",
- "swordsmanship"
]
}, - "score": "79",
- "updatedAt": "2022-01-15T12:34:56.123Z",
- "createdAt": "2021-01-01T12:34:56.123Z"
}
Remove a follower given both the followed and follower organization IDs. The requesting user must be an administrator of the followed organization.
organizationId required | string Organization unique identifier |
followerId required | string A follower organization unique identifier |
curl -X 'DELETE' \ 'https://api.zanshin.tenchisecurity.com/organizations/{orgId}/followers/{followerId}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
true
Lists all organization follow requests given the organization ID. The logged user must be an administrator of the organization to use this endpoint.
organizationId required | string Organization unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/{orgId}/followers/requests' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
[- {
- "id": "00000000-0000-4000-a000-000000000001",
- "name": "Niten Ichi-ryu",
- "status": "ACTIVE",
- "share": {
- "mode": "SCAN_TARGET_TAGS",
- "scanTargetTags": [
- "twoheavens",
- "swordsmanship"
]
}, - "score": "79",
- "updatedAt": "2022-01-15T12:34:56.123Z",
- "createdAt": "2021-01-01T12:34:56.123Z"
}
]
Create a follow request from the given organization (informed in the path) to the target organization (informed on the body). The logged user must be an administrator of the path informed organization to use this endpoint.
organizationId required | string Organization unique identifier |
Organization Id for the to be followed org
token | string |
{- "token": "00000000-0000-4000-a000-000000000002"
}
{- "id": "00000000-0000-4000-a000-000000000001",
- "name": "Niten Ichi-ryu",
- "status": "ACTIVE",
- "share": {
- "mode": "SCAN_TARGET_TAGS",
- "scanTargetTags": [
- "twoheavens",
- "swordsmanship"
]
}, - "score": "79",
- "updatedAt": "2022-01-15T12:34:56.123Z",
- "createdAt": "2021-01-01T12:34:56.123Z"
}
Get a follow request details given the organization ID and a follow erquest unique identifier. The follow request identifier must be valid and must have been issued by or to the organization. The logged user must be an administrator of the organization to use this endpoint.
organizationId required | string Organization unique identifier |
followerId required | string A follower organization unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/{orgId}/followers/requests/{followerId}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
{- "id": "00000000-0000-4000-a000-000000000001",
- "name": "Niten Ichi-ryu",
- "status": "ACTIVE",
- "share": {
- "mode": "SCAN_TARGET_TAGS",
- "scanTargetTags": [
- "twoheavens",
- "swordsmanship"
]
}, - "score": "79",
- "updatedAt": "2022-01-15T12:34:56.123Z",
- "createdAt": "2021-01-01T12:34:56.123Z"
}
Cancels an issued follow request given the organization ID and a follow request unique identifier. The follow request identifier must be valid and must have been issued by the organization. The logged user must be an administrator of the organization to use this endpoint.
organizationId required | string Organization unique identifier |
followerId required | string A follower organization unique identifier |
curl -X 'DELETE' \ 'https://api.zanshin.tenchisecurity.com/organizations/{orgId}/followers/requests/{followerId}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
true
List all companies that are being followed by a given organization. The logged user must be an administrator of the given organization
organizationId required | string Organization unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/{orgId}/following' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
[- {
- "id": "00000000-0000-4000-a000-000000000001",
- "name": "Niten Ichi-ryu",
- "status": "ACTIVE",
- "tags": [
- "twoheavens",
- "swordsmanship"
], - "score": "75",
- "updatedAt": "2022-01-15T12:34:56.123Z",
- "createdAt": "2021-01-01T12:34:56.123Z"
}
]
Get details for the following.
organizationId required | string Organization unique identifier |
followingId required | string A following organization unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/{orgId}/following/{followingId}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
{- "id": "00000000-0000-4000-a000-000000000001",
- "name": "Niten Ichi-ryu",
- "status": "ACTIVE",
- "tags": [
- "twoheavens",
- "swordsmanship"
], - "score": "75",
- "updatedAt": "2022-01-15T12:34:56.123Z",
- "createdAt": "2021-01-01T12:34:56.123Z"
}
Stops following the provided organization.
organizationId required | string Organization unique identifier |
followingId required | string A following organization unique identifier |
curl -X 'DELETE' \ 'https://api.zanshin.tenchisecurity.com/organizations/{orgId}/following/{followingId}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
true
Update for the following.
organizationId required | string Organization unique identifier |
followingId required | string A following organization unique identifier |
curl -X 'PUT' \ 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/following/{followingId}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
{- "id": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "name": "Niten Ichi-ryu",
- "email": "example@org.com",
- "roles": [ ],
- "score": "79",
- "overallScore": "81",
- "publicScore": "92",
- "status": "ACTIVE",
- "tags": [
- [
- "design",
- "financial"
]
], - "updatedAt": "2022-01-15T12:34:56.123Z",
- "createdAt": "2021-01-01T12:34:56.123Z"
}
List all following requests (when a company asks you to follow them) received by a given organization. The logged user must be an administrator of the organization.
organizationId required | string Organization unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/{orgId}/following/requests' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
[- {
- "id": "00000000-0000-4000-a000-000000000001",
- "name": "Niten Ichi-ryu",
- "status": "ACTIVE",
- "share": {
- "mode": "SCAN_TARGET_TAGS",
- "scanTargetTags": [
- "twoheavens",
- "swordsmanship"
]
}, - "score": "79",
- "updatedAt": "2022-01-15T12:34:56.123Z",
- "createdAt": "2021-01-01T12:34:56.123Z"
}
]
Accepts a following requests (become a follower of) given organization. The logged user must be an administrator of the accepting organization. The token must be valid and submitted to the informed organization.
organizationId required | string Organization unique identifier |
followingId required | string A following organization unique identifier |
curl -X 'POST' \ 'https://api.zanshin.tenchisecurity.com/organizations/{orgId}/following/requests/{followingId}/accept' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -d ''
{- "id": "00000000-0000-4000-a000-000000000001",
- "name": "Niten Ichi-ryu",
- "status": "ACTIVE",
- "updatedAt": "2022-01-15T12:34:56.123Z",
- "createdAt": "2021-01-01T12:34:56.123Z"
}
Declines a following request (decline to become a follower of) given organization. The logged user must be an administrator of the declining organization. The requesting company must be valid and have submitted a prior following request.
organizationId required | string Organization unique identifier |
followingId required | string A following organization unique identifier |
curl -X 'POST' \ 'https://api.zanshin.tenchisecurity.com/organizations/{orgId}/following/requests/{followingId}/decline' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -d ''
true
List all tags applied to organizations being followed by a given organization. The logged user must be a member of the organization
organizationId required | string Organization unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/{orgId}/following/tags' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
[- "design",
- "financial",
- "customer",
- "payment"
]
Lists the scan history of a given scan target. The requesting user must be a member of the organization.
organizationId required | string Organization unique identifier |
scanTargetId required | string Scan target unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/{orgId}/scantargets/{sncaTargetId}/scans' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
{- "data": [
- {
- "execution": "arn:aws:states:us-x-x:account_id:execution:x:45cec8fe-f9f8-4df8-b255-14bf1dae3ab3-20211207-150048341",
- "organizationId": "00000000-0000-4000-a000-000000000001",
- "scanTargetId": "fa000000-0000-4000-a000-000000000001",
- "slot": "2021-03-08T00:06:02.377Z",
- "status": "RUNNING",
- "summary": {
- "severities": {
- "CRITICAL": 5,
- "HIGH": 10,
- "MEDIUM": 15,
- "LOW": 20,
- "INFO": 1
}, - "states": {
- "CLOSED": 10,
- "IN_PROGRESS": 10,
- "OPEN": 10
}, - "infos": {
- "COLLECTED": 3333,
- "UNKNOWN": 2222,
- "FAIL": 1111,
- "NEW": {
- "CRITICAL": 5,
- "HIGH": 10,
- "MEDIUM": 15,
- "LOW": 20,
- "INFO": 1
}, - "OPEN": {
- "CRITICAL": 5,
- "HIGH": 10,
- "MEDIUM": 15,
- "LOW": 20,
- "INFO": 1
}, - "REOPEN": {
- "CRITICAL": 5,
- "HIGH": 10,
- "MEDIUM": 15,
- "LOW": 20,
- "INFO": 1
}, - "CLOSED": {
- "CRITICAL": 5,
- "HIGH": 10,
- "MEDIUM": 15,
- "LOW": 20,
- "INFO": 1
}
}
}, - "updatedAt": "2022-01-15T12:34:56.123Z",
- "createdAt": "2022-01-15T12:34:56.123Z"
}
]
}
Get detailed data for a specific scan execution. The requesting user must be a member of the organization owning the scan target.
organizationId required | string Organization unique identifier |
scanTargetId required | string Scan target unique identifier |
slot required | integer <int64> ID of the scan to return |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/{orgId}/scantargets/{scanTargetId}/scans/{scanId}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
{- "execution": "arn:aws:states:us-x-x:account_id:execution:x:45cec8fe-f9f8-4df8-b255-14bf1dae3ab3-20211207-150048341",
- "organizationId": "00000000-0000-4000-a000-000000000001",
- "scanTargetId": "fa000000-0000-4000-a000-000000000001",
- "slot": "2021-03-08T00:06:02.377Z",
- "status": "RUNNING",
- "summary": {
- "severities": {
- "CRITICAL": 5,
- "HIGH": 10,
- "MEDIUM": 15,
- "LOW": 20,
- "INFO": 1
}, - "states": {
- "CLOSED": 10,
- "IN_PROGRESS": 10,
- "OPEN": 10
}, - "infos": {
- "COLLECTED": 3333,
- "UNKNOWN": 2222,
- "FAIL": 1111,
- "NEW": {
- "CRITICAL": 5,
- "HIGH": 10,
- "MEDIUM": 15,
- "LOW": 20,
- "INFO": 1
}, - "OPEN": {
- "CRITICAL": 5,
- "HIGH": 10,
- "MEDIUM": 15,
- "LOW": 20,
- "INFO": 1
}, - "REOPEN": {
- "CRITICAL": 5,
- "HIGH": 10,
- "MEDIUM": 15,
- "LOW": 20,
- "INFO": 1
}, - "CLOSED": {
- "CRITICAL": 5,
- "HIGH": 10,
- "MEDIUM": 15,
- "LOW": 20,
- "INFO": 1
}
}
}, - "updatedAt": "2022-01-15T12:34:56.123Z",
- "createdAt": "2022-01-15T12:34:56.123Z"
}
Create a scan target suggestion for a following organization. The requesting user must be a member of the organization.
organizationId required | string <uuid> (organization.OrganizationId) |
followingId required | string <uuid> (organization.OrganizationId) |
account required | string Scan target suggestion account, for now only domains, should contain only the second-level and top-level domain, without the protocol (https://) |
kind required | string Enum: "AWS" "AZURE" "BITBUCKET" "DOMAIN" "GCP" "GITHUB" "GITLAB" "GWORKSPACE" "HUAWEI" "JIRA" "MONGODB_ATLAS" "MS365" "ORACLE" "SALESFORCE" "SLACK" "ZENDESK" "CLOUDFLARE" "CROWDSTRIKE_FALCON" "BITDEFENDER" |
{- "account": "tenchisecurity.com",
- "kind": "DOMAIN"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "account": "tenchisecurity.com",
- "kind": "DOMAIN",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "createdAt": "2019-08-24T14:15:22Z"
}
List all scan targets given an organization ID.
organizationId required | string <uuid> (organization.OrganizationId) |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/scantargets' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "kind": "AWS",
- "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",
- "account": "string",
- "schedule": {
- "frequency": "string",
- "timeOfDay": "string"
}, - "credential": {
- "property1": "string",
- "property2": "string"
}, - "status": "NEW",
- "notification": [
- "CRITICAL"
], - "lastScan": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "currentScanSlot": "2019-08-24T14:15:22Z",
- "lastScanSlot": "2019-08-24T14:15:22Z",
- "share": {
- "mode": "ALL"
}, - "tags": [
- "string"
]
}
], - "cursor": "string"
}
Creates a new scan target for the given organization ID.
organizationId required | string <uuid> (organization.OrganizationId) |
name required | string The scan target display name as chosen during onboarding |
kind required | string Enum: "AWS" "AZURE" "BITBUCKET" "DOMAIN" "GCP" "GITHUB" "GITLAB" "GWORKSPACE" "HUAWEI" "JIRA" "MONGODB_ATLAS" "MS365" "ORACLE" "SALESFORCE" "SLACK" "ZENDESK" "CLOUDFLARE" "CROWDSTRIKE_FALCON" "BITDEFENDER" The type of resource this scan target represents, either a cloud service provider or external attack surface asset |
object Configuration specific for the scan target kind, for now handles ASM scan modes | |
groupId | string <uuid> Scan Target Group unique identifier, which this scan target belongs |
object How frequently this scan target will be scheduled for scanning | |
object DEPRECATED (replace by metadata) - Credentials | |
notification | Array of strings (alert.AlertSeverity) Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" List of alert severities that should send a notification when occur |
required | common.ShareAll (object) or common.ShareNone (object) or common.ShareFollowers (object) Scan Target sharing and visibility configuration |
tags required | Array of strings (scantarget.ScanTargetTag) List of identification tags added to this scan target, can be used for specific sharing modes |
{- "name": "string",
- "kind": "AWS",
- "options": {
- "scanMode": "BACKGROUND"
}, - "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",
- "schedule": {
- "frequency": "string",
- "timeOfDay": "string"
}, - "credential": {
- "property1": "string",
- "property2": "string"
}, - "notification": [
- "CRITICAL"
], - "share": {
- "mode": "ALL"
}, - "tags": [
- "string"
]
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "kind": "AWS",
- "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",
- "account": "string",
- "schedule": {
- "frequency": "string",
- "timeOfDay": "string"
}, - "credential": {
- "property1": "string",
- "property2": "string"
}, - "status": "NEW",
- "notification": [
- "CRITICAL"
], - "lastScan": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "currentScanSlot": "2019-08-24T14:15:22Z",
- "lastScanSlot": "2019-08-24T14:15:22Z",
- "share": {
- "mode": "ALL"
}, - "tags": [
- "string"
]
}
List all scan target suggestions made to a given organization. The requesting user must be a member of the organization.
organizationId required | string <uuid> (organization.OrganizationId) |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "account": "tenchisecurity.com",
- "kind": "DOMAIN",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "cursor": "string"
}
Get data from a specific scan target suggestion. The requesting user must be a member of the organization.
organizationId required | string <uuid> (organization.OrganizationId) |
suggestionId required | string <uuid> (common.Id) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "account": "tenchisecurity.com",
- "kind": "DOMAIN",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "createdAt": "2019-08-24T14:15:22Z"
}
Lists all unique tags attached in all organization scan targets.
organizationId required | string <uuid> (organization.OrganizationId) |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/scantargets/tags' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
[- "string"
]
List details for a specific organization scan target.
organizationId required | string <uuid> (organization.OrganizationId) |
scanTargetId required | string <uuid> (scantarget.ScanTargetId) |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/scantargets/{scanTargetId}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "kind": "AWS",
- "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",
- "account": "string",
- "schedule": {
- "frequency": "string",
- "timeOfDay": "string"
}, - "credential": {
- "property1": "string",
- "property2": "string"
}, - "status": "NEW",
- "notification": [
- "CRITICAL"
], - "lastScan": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "currentScanSlot": "2019-08-24T14:15:22Z",
- "lastScanSlot": "2019-08-24T14:15:22Z",
- "share": {
- "mode": "ALL"
}, - "tags": [
- "string"
]
}
Allows edition of some scan target properties.
organizationId required | string <uuid> (organization.OrganizationId) |
scanTargetId required | string <uuid> (scantarget.ScanTargetId) |
name | string The scan target display name as chosen during onboarding |
object Configuration specific for the scan target kind, for now handles ASM scan modes | |
groupId | string <uuid> Scan Target Group unique identifier, which this scan target belongs |
account | string DEPRECATED (will be on metadata) - The main identifier of the resource this scan target represents, such as an AWS account ID, Azure tenant ID, GCP project name or DNS domain; the format will depend on which kind of scan target this is |
object How frequently this scan target will be scheduled for scanning | |
object DEPRECATED (replace by metadata) - Credentials | |
status | string Enum: "NEW" "ACTIVE" "SUSPENDED" "RUNNING" "ERROR" "INVALID_CREDENTIAL" The current status of the scan target |
notification | Array of strings (alert.AlertSeverity) Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" List of alert severities that should send a notification when occur |
common.ShareAll (object) or common.ShareNone (object) or common.ShareFollowers (object) Scan Target sharing and visibility configuration | |
tags | Array of strings (scantarget.ScanTargetTag) List of identification tags added to this scan target, can be used for specific sharing modes |
{- "name": "string",
- "options": {
- "scanMode": "BACKGROUND"
}, - "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",
- "account": "string",
- "schedule": {
- "frequency": "string",
- "timeOfDay": "string"
}, - "credential": {
- "property1": "string",
- "property2": "string"
}, - "status": "NEW",
- "notification": [
- "CRITICAL"
], - "share": {
- "mode": "ALL"
}, - "tags": [
- "string"
]
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "kind": "AWS",
- "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",
- "account": "string",
- "schedule": {
- "frequency": "string",
- "timeOfDay": "string"
}, - "credential": {
- "property1": "string",
- "property2": "string"
}, - "status": "NEW",
- "notification": [
- "CRITICAL"
], - "lastScan": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "currentScanSlot": "2019-08-24T14:15:22Z",
- "lastScanSlot": "2019-08-24T14:15:22Z",
- "share": {
- "mode": "ALL"
}, - "tags": [
- "string"
]
}
Delete a scan target from a organization.
organizationId required | string <uuid> (organization.OrganizationId) |
scanTargetId required | string <uuid> (scantarget.ScanTargetId) |
curl -X 'DELETE' \ 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/scantargets/{scanTargetId}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
{- "statusCode": 400,
- "error": "BadRequest",
- "message": "BadRequest"
}
Checks if the scan target has proper connectivity with the underlying cloud service provider account, without actually performing a scan.
organizationId required | string <uuid> (organization.OrganizationId) |
scanTargetId required | string <uuid> (scantarget.ScanTargetId) |
curl -X 'POST' \ 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/scantargets/{scanTargetId}/check' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
{- "status": "success",
- "message": "check.success"
}
Generate a certificate for MS365 scan targets.
organizationId required | string <uuid> (organization.OrganizationId) |
scanTargetId required | string <uuid> (scantarget.ScanTargetId) |
curl -X 'POST' \ 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/scantargets/{scanTargetId}/genCertificate' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
{- "downloadLink": "string"
}
Allows a organization admin to request a scan target to be deleted from the organization.
organizationId required | string <uuid> (organization.OrganizationId) |
scanTargetId required | string <uuid> (scantarget.ScanTargetId) |
userComment required | string |
required | Array of objects (user.UserContact) |
{- "userComment": "string",
- "userContacts": [
- {
- "email": "string",
- "name": "string",
- "phone": "string"
}
]
}
{- "statusCode": 400,
- "error": "BadRequest",
- "message": "BadRequest"
}
Manually trigger the scan of a scan target.
organizationId required | string <uuid> (organization.OrganizationId) |
scanTargetId required | string <uuid> (scantarget.ScanTargetId) |
force | string If 'true', ignore current state and attempt scan anyway. If 'false', will not run scan target with status NEW, ERROR, INVALID_CREDENTIAL or RUNNING Default is 'false' |
curl -X 'POST' \ 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/scantargets/{scanTargetId}/scan' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
{- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "slot": "2019-08-24T14:15:22Z",
- "status": "RUNNING",
- "summary": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Manually stop a currently RUNNING scan for a scan target.
organizationId required | string <uuid> (organization.OrganizationId) |
scanTargetId required | string <uuid> (scantarget.ScanTargetId) |
curl -X 'POST' \ 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/scantargets/{scanTargetId}/stop' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
{- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "slot": "2019-08-24T14:15:22Z",
- "status": "RUNNING",
- "summary": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
List all scan target groups given an organization ID. The logged user must be a member of the organization.
organizationId required | string Organization unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/scantargetgroups' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
[- {
- "id": "00000000-0000-5000-b000-00000000000a",
- "organizationId": "00000000-0000-4000-a000-000000000001",
- "name": "Resource Rollup",
- "kind": "ORACLE",
- "credential": {
- "region": "us-ashburn-1",
- "tenancyId": "ocid1.tenancy.oc1..aaaaaaaa0000000000000000000000000000000000000000000000000000",
- "userId": "ocid1.user.oc1..aaaaaaaa0000000000000000000000000000000000000000000000000000",
- "Keyfingerprint": "1a:1a:aa:1a:11:11:aa:11:11:11:1a:1a:1a:a:1a:1a"
}
}
]
Create a scan target group given an organization ID. The logged user must be an admin of the organization.
organizationId required | string Organization unique identifier |
Scan Target Group Data to create
name | string (ScanTargetGroupName) The scan target group assigned name |
kind | string (kind) Enum: "ORACLE" "BITBUCKET" "GITLAB" "MONGODB_ATLAS" "CLOUDFLARE" "IBM_CLOUD" The type of cloud of this scan target group |
notification | Array of strings (Notification) Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" The default notification severity of an alert |
HourlySchedule (object) or DailySchedule (object) or WeeklySchedule (object) The default schedule of the group targets children |
{- "name": "Kami Fujiwara group",
- "kind": "ORACLE",
- "notification": [
- "CRITICAL"
], - "schedule": {
- "frequency": "6h"
}
}
{- "id": "00000000-0000-4000-a000-000000000001",
- "organizationId": "00000000-0000-4000-a000-000000000001",
- "name": "Kami Fujiwara",
- "kind": "ORACLE",
- "credential": "{}"
}
Get details of a scan target group given both the organization and scan target group IDs. The logged user must be a member of the organization.
organizationId required | string Organization unique identifier |
scanTargetGroupId required | string Scan target group unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/scantargetgroups/{scanTargetGroupId}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
{- "id": "00000000-0000-4000-a000-000000000001",
- "organizationId": "00000000-0000-4000-a000-000000000001",
- "name": "Resource Rollup",
- "kind": "ORACLE",
- "credential": {
- "region": "us-ashburn-1",
- "tenancyId": "ocid1.tenancy.oc1..aaaaaaaa0000000000000000000000000000000000000000000000000000",
- "userId": "ocid1.user.oc1..aaaaaaaa0000000000000000000000000000000000000000000000000000",
- "Keyfingerprint": "1a:1a:aa:1a:11:11:aa:11:11:11:1a:1a:1a:a:1a:1a"
}
}
Remove a scan target group given both the organization and scan target group ID. The logged user must be an admin of the organization.
organizationId required | string Organization unique identifier |
scanTargetGroupId required | string Scan target group unique identifier |
deleteScanTargets | boolean Example: deleteScanTargets=true |
curl -X 'DELETE' \ 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/scantargetgroups/{scanTargetGroupId}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
true
Update an already created scan target group with the terraform returned data, given an organization ID. The logged user must be an admin of the organization.
organizationId required | string Organization unique identifier |
scanTargetGroupId required | string Scan target group unique identifier |
Scan Target Group Data to update
name | string (ScanTargetGroupName) The scan target group assigned name |
notification | Array of strings (Notification) Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" The default notification severity of an alert |
HourlySchedule (object) or DailySchedule (object) or WeeklySchedule (object) The default schedule of the group targets children |
{- "name": "Kami Fujiwara group",
- "notification": [
- "CRITICAL"
], - "schedule": {
- "frequency": "6h"
}
}
{- "name": "Kami Fujiwara group",
- "kind": "ORACLE",
- "credential": {
- "region": "us-ashburn-1",
- "tenancyId": "ocid1.tenancy.oc1..aaaaaaaa0000000000000000000000000000000000000000000000000000",
- "userId": "ocid1.user.oc1..aaaaaaaa0000000000000000000000000000000000000000000000000000",
- "Keyfingerprint": "1a:1a:aa:1a:11:11:aa:11:11:11:1a:1a:1a:a:1a:1a"
}, - "notification": [
- "CRITICAL"
], - "schedule": {
- "frequency": "6h"
}
}
Insert an already created scan target group with the terraform returned data, given an organization ID. The logged user must be an admin of the organization.
organizationId required | string Organization unique identifier |
scanTargetGroupId required | string Scan target group unique identifier |
Scan Target Group Data to insert
ScanTargetGroupCredentialListOracle (object) (credential) Credentials |
{- "credential": {
- "region": "us-ashburn-1",
- "tenancyId": "ocid1.tenancy.oc1..aaaaaaaa0000000000000000000000000000000000000000000000000000",
- "userId": "ocid1.user.oc1..aaaaaaaa0000000000000000000000000000000000000000000000000000",
- "Keyfingerprint": "1a:1a:aa:1a:11:11:aa:11:11:11:1a:1a:1a:a:1a:1a"
}
}
{- "name": "Kami Fujiwara group",
- "kind": "ORACLE",
- "credential": {
- "region": "us-ashburn-1",
- "tenancyId": "ocid1.tenancy.oc1..aaaaaaaa0000000000000000000000000000000000000000000000000000",
- "userId": "ocid1.user.oc1..aaaaaaaa0000000000000000000000000000000000000000000000000000",
- "Keyfingerprint": "1a:1a:aa:1a:11:11:aa:11:11:11:1a:1a:1a:a:1a:1a"
}, - "notification": [
- "CRITICAL"
], - "schedule": {
- "frequency": "6h"
}
}
Get all scan targets from a specific scan target group. The logged user must be a member of the organization.
organizationId required | string Organization unique identifier |
scanTargetGroupId required | string Scan target group unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/{orgId}/scantargetgroups/{scanTargetGroupId}/scantargets' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
{- "id": "00000000-0000-4000-a000-000000000001",
- "organizationId": "00000000-0000-4000-a000-000000000001",
- "name": "Kami Fujiwara",
- "kind": "AWS",
- "status": "ACTIVE",
- "account": "tenchisecurity.com",
- "credential": {
- "applicationId": "00000000-eeee-eeee-eeee-000000000000",
- "subscriptionId": "00000000-aaaa-aaaa-aaaa-000000000000",
- "directoryId": "somedir.onmicrosoft.com"
}, - "metadata": { },
- "schedule": {
- "frequency": "6h"
}, - "updatedAt": "2022-01-15T12:34:56.123Z",
- "createdAt": "2021-01-01T12:34:56.123Z"
}
Get all compartments from a specific scan target group. The logged user must be a member of the organization.
organizationId required | string Organization unique identifier |
scanTargetGroupId required | string Scan target group unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/{orgId}/scantargetgroups/{scanTargetGroupId}/targets' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
[ ]
Create Scan Targets from previous listed compartments inside the scan target group. The logged user must be a member of the organization.
organizationId required | string Organization unique identifier |
scanTargetGroupId required | string Scan target group unique identifier |
Array of items (object) or items (object) or items (object) or items (object) or items (object) or items (object) List of scan targets to be onboarded |
{- "scanTargets": [
- {
- "workspaceName": "Go Rin no Sho",
- "workspaceId": "worspace.example.go-rin-no-sho"
}
]
}
[- {
- "id": "00000000-0000-4000-a000-000000000001",
- "organizationId": "00000000-0000-4000-a000-000000000001",
- "name": "Kami Fujiwara",
- "kind": "AWS",
- "status": "ACTIVE",
- "account": "tenchisecurity.com",
- "credential": {
- "applicationId": "00000000-eeee-eeee-eeee-000000000000",
- "subscriptionId": "00000000-aaaa-aaaa-aaaa-000000000000",
- "directoryId": "somedir.onmicrosoft.com"
}, - "metadata": { },
- "schedule": {
- "frequency": "6h"
}, - "updatedAt": "2022-01-15T12:34:56.123Z",
- "createdAt": "2021-01-01T12:34:56.123Z"
}
]
Get the terraform download URL of the scan target group. The logged user must be a member of the organization.
organizationId required | string Organization unique identifier |
scanTargetGroupId required | string Scan target group unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/{orgId}/scantargetgroups/{scanTargetGroupId}/scripts' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
An endpoint to access this webhooks.
organizationId required | string Organization unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-0000-4000-a000-000000000001/webhooks' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json' \
{- "id": "00000000-0000-4000-a000-000000000001",
- "organizationId": "00000000-0000-4000-a000-000000000001",
- "name": "Tenchi Webhook",
- "description": "Tenchi Webhook description",
- "events": [
- "ScanTargetCreated"
], - "status": "ACTIVE",
- "authorizationType": "NONE",
- "createdAt": "2021-01-01T12:34:56.123Z",
- "updatedAt": "2022-01-15T12:34:56.123Z"
}
Create a webhook given an organization ID.
organizationId required | string Organization unique identifier |
Webhook Data to create
name required | string (WebhookNameProp) The webhook display name as chosen during onboarding |
description required | string (WebhookDescriptionProp) The webhook display description as chosen during onboarding |
url required | string (WebhookUrlProp) Webhook Url |
events required | Array of strings (WebhookEventsProp) Items Enum: "ScanTargetCreated" "ScanTargetDeleted" "OrganizationInviteCreated" "OrganizationInviteDeleted" "OrganizationInviteAccepted" "OrganizationInviteResent" Webhook Events |
required | WebhookAuthorization (object) or WebhookAuthorization (object) or WebhookAuthorization (object) (WebhookAuthorizationProp) |
{- "name": "Tenchi Webhook",
- "description": "Tenchi Webhook description",
- "events": [
- "ScanTargetCreated"
], - "authorization": {
- "type": "BASIC",
- "username": "username",
- "password": "password"
}
}
{- "id": "00000000-0000-4000-a000-000000000001",
- "organizationId": "00000000-0000-4000-a000-000000000001",
- "name": "Tenchi Webhook",
- "description": "Tenchi Webhook description",
- "events": [
- "ScanTargetCreated"
], - "status": "ACTIVE",
- "authorizationType": "NONE",
- "createdAt": "2021-01-01T12:34:56.123Z",
- "updatedAt": "2022-01-15T12:34:56.123Z"
}
Send a ping event to test the webhook.
organizationId required | string Organization unique identifier |
webhookId required | string Webhook unique identifier |
curl -X 'POST' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-0000-4000-a000-000000000001/webhooks/00000000-0000-4000-a000-100000000001/ping' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json' \
true
An endpoint to access this webhook.
organizationId required | string Organization unique identifier |
webhookId required | string Webhook unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-0000-4000-a000-000000000001/webhooks/00000000-0000-4000-a000-100000000001' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json' \
{- "id": "00000000-0000-4000-a000-000000000001",
- "organizationId": "00000000-0000-4000-a000-000000000001",
- "name": "Tenchi Webhook",
- "description": "Tenchi Webhook description",
- "events": [
- "ScanTargetCreated"
], - "status": "ACTIVE",
- "authorizationType": "NONE",
- "createdAt": "2021-01-01T12:34:56.123Z",
- "updatedAt": "2022-01-15T12:34:56.123Z"
}
Edits a webhook given both the organization and webhook IDs
organizationId required | string Organization unique identifier |
webhookId required | string Webhook unique identifier |
WebhoohUpdate Data
name | string (WebhookNameProp) The webhook display name as chosen during onboarding |
description | string (WebhookDescriptionProp) The webhook display description as chosen during onboarding |
url | string (WebhookUrlProp) Webhook Url |
events | Array of strings (WebhookEventsProp) Items Enum: "ScanTargetCreated" "ScanTargetDeleted" "OrganizationInviteCreated" "OrganizationInviteDeleted" "OrganizationInviteAccepted" "OrganizationInviteResent" Webhook Events |
WebhookAuthorization (object) or WebhookAuthorization (object) or WebhookAuthorization (object) (WebhookAuthorizationProp) |
{- "name": "Tenchi Webhook",
- "description": "Tenchi Webhook description",
- "events": [
- "ScanTargetCreated"
], - "authorization": {
- "type": "BASIC",
- "username": "username",
- "password": "password"
}
}
{- "id": "00000000-0000-4000-a000-000000000001",
- "organizationId": "00000000-0000-4000-a000-000000000001",
- "name": "Tenchi Webhook",
- "description": "Tenchi Webhook description",
- "events": [
- "ScanTargetCreated"
], - "status": "ACTIVE",
- "authorizationType": "NONE",
- "createdAt": "2021-01-01T12:34:56.123Z",
- "updatedAt": "2022-01-15T12:34:56.123Z"
}
Remove a webhook given both the organization and webhook IDs
organizationId required | string Organization unique identifier |
webhookId required | string Webhook unique identifier |
curl -X 'DELETE' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-0000-4000-a000-000000000001/webhooks/00000000-0000-4000-a000-100000000001' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json' \
true
An endpoint to get the usage metrics of a specific webhook.
organizationId required | string Organization unique identifier |
webhookId required | string Webhook unique identifier |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-0000-4000-a000-000000000001/webhooks/00000000-0000-4000-a000-100000000001/metrics' \ -H 'accept: */*' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json' \
{- "invocations": {
- "timestamps": [
- "2023-05-26T19:33:14.989Z"
], - "values": [
- 5
]
}, - "failedInvocations": {
- "timestamps": [
- "2023-05-26T19:33:14.989Z"
], - "values": [
- 5
]
}
}
List the events of an organization.
organizationId required | string Organization unique identifier |
end | string <date-time> Example: end=2020-01-15T11:30:59.123Z |
start | string <date-time> Example: start=2020-01-15T11:30:59.123Z |
name | string Example: name=AlertCreated Require valid event names listed by the |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/00000000-0000-4000-a000-000000000002/events' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
{- "data": [
- {
- "id": "00000000-0000-4000-a000-000000000001",
- "source": "string",
- "name": "string",
- "data": { },
- "metadata": { },
- "createdAt": "2020-01-15T11:30:59.123Z"
}
], - "cursor": "string"
}
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/events/names' \
{- "alert": [
- "AlertCreated"
], - "follower": [
- "FollowerRequested"
], - "following": [
- "FollowingRequested"
], - "member": [
- "MemberInviteCreated"
], - "organization": [
- "OrganizationCreated"
], - "answer": [
- "AnswerCreated"
], - "assessment": [
- "AssessmentCreated"
], - "question": [
- "QuestionCreated"
], - "questionnaire": [
- "QuestionnaireCreated"
], - "scan": [
- "ScanCreated"
], - "scanTarget": [
- "ScanTargetCreated"
], - "webhook": [
- "WebhookCreated"
], - "alertComment": [
- "AlertCommentCreated"
], - "assessmentComment": [
- "AssessmentCommentCreated"
]
}
List alert history for current user organization.
size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
cursor | string |
organizationId required | string <uuid> (organization.OrganizationId) |
scanTargetIds | Array of strings <uuid> (scantarget.ScanTargetId) [ items <uuid > ] |
lang | string (common.Language) Enum: "pt-BR" "en-US" |
pageSize required | integer |
cursor | string |
{- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "lang": "pt-BR",
- "pageSize": 0,
- "cursor": "string"
}
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "rule": "string",
- "resource": "string",
- "severity": "CRITICAL",
- "state": "OPEN",
- "version": 0,
- "labels": [
- "string"
], - "enrichment": {
- "property1": null,
- "property2": null
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "openedAt": "2019-08-24T14:15:22Z",
- "resolvedAt": "2019-08-24T14:15:22Z",
- "ruleTitle": "string",
- "timelinessThreshold": 0.1,
- "tags": [
- "string"
], - "operation": "string",
- "cursor": "string"
}
], - "cursor": "string"
}
Get detailed data on a specific alert given the alert ID.
alertId required | string <uuid> (alert.AlertId) |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/alerts/{alertId}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "rule": "string",
- "resource": "string",
- "severity": "CRITICAL",
- "state": "OPEN",
- "version": 0,
- "tags": [
- "string"
], - "labels": [
- "string"
], - "compliances": [
- "string"
], - "enrichment": {
- "property1": null,
- "property2": null
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "openedAt": "2019-08-24T14:15:22Z",
- "resolvedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "ruleTitle": "string",
- "timelinessThreshold": 0.1
}
Lists all comments for given alert with comment creator information.
alertId required | string <uuid> (alert.AlertId) |
size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
page | integer <uint16> >= 1 Default: 1 |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/alerts/{alertId}/comments' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json' \
{- "data": [
- {
- "userName": "string",
- "userPicture": "string",
- "notMember": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "alertId": "a9367074-b5c3-42c4-9be4-be129f43577e",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "comment": "string",
- "mimeType": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
List historical data from given alert.
alertId required | string <uuid> (alert.AlertId) |
size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
cursor | string |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/alerts/{alertId}/history' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \ -H 'Content-Type: application/json' \
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "rule": "string",
- "resource": "string",
- "severity": "CRITICAL",
- "state": "OPEN",
- "version": 0,
- "labels": [
- "string"
], - "enrichment": {
- "property1": null,
- "property2": null
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "openedAt": "2019-08-24T14:15:22Z",
- "resolvedAt": "2019-08-24T14:15:22Z",
- "ruleTitle": "string",
- "timelinessThreshold": 0.1,
- "tags": [
- "string"
], - "operation": "string",
- "cursor": "string"
}
], - "cursor": "string"
}
Updates a alert state and add comments to the alert if necessary.
organizationId required | string <uuid> (organization.OrganizationId) |
scanTargetId required | string <uuid> (scantarget.ScanTargetId) |
alertId required | string <uuid> (alert.AlertId) |
state | string (alert.AlertState) Enum: "OPEN" "IN_PROGRESS" "RISK_ACCEPTED" "MITIGATING_CONTROL" "FALSE_POSITIVE" "CLOSED" |
labels | Array of strings (alert.AlertLabel) |
comment | string |
{- "state": "OPEN",
- "labels": [
- "string"
], - "comment": "string"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "rule": "string",
- "resource": "string",
- "severity": "CRITICAL",
- "state": "OPEN",
- "version": 0,
- "tags": [
- "string"
], - "labels": [
- "string"
], - "compliances": [
- "string"
], - "enrichment": {
- "property1": null,
- "property2": null
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "openedAt": "2019-08-24T14:15:22Z",
- "resolvedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "ruleTitle": "string",
- "timelinessThreshold": 0.1
}
List all organization alerts or a subset based on the given filter.
organizationId required | string <uuid> (organization.OrganizationId) |
size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
cursor | string |
rules | Array of strings |
states | Array of strings (alert.AlertState) Items Enum: "OPEN" "IN_PROGRESS" "RISK_ACCEPTED" "MITIGATING_CONTROL" "FALSE_POSITIVE" "CLOSED" |
severities | Array of strings (alert.AlertSeverity) Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" |
scanTargetKinds | Array of strings (scantarget.ScanTargetKind) Items Enum: "AWS" "AZURE" "BITBUCKET" "DOMAIN" "GCP" "GITHUB" "GITLAB" "GWORKSPACE" "HUAWEI" "JIRA" "MONGODB_ATLAS" "MS365" "ORACLE" "SALESFORCE" "SLACK" "ZENDESK" "CLOUDFLARE" "CROWDSTRIKE_FALCON" "BITDEFENDER" |
search | string |
lang | string (common.Language) Enum: "pt-BR" "en-US" |
openedAtStart | string <date-time> (common.UTCDateTime) |
openedAtEnd | string <date-time> (common.UTCDateTime) |
resolvedAtStart | string <date-time> (common.UTCDateTime) |
resolvedAtEnd | string <date-time> (common.UTCDateTime) |
createdAtStart | string <date-time> (common.UTCDateTime) |
createdAtEnd | string <date-time> (common.UTCDateTime) |
updatedAtStart | string <date-time> (common.UTCDateTime) |
updatedAtEnd | string <date-time> (common.UTCDateTime) |
sort | string (common.Sort) Enum: "DESC" "ASC" |
scanTargetIds | Array of strings <uuid> (scantarget.ScanTargetId) [ items <uuid > ] |
scanTargetTags | Array of strings (scantarget.ScanTargetTag) |
includeEmptyScanTargetTags | boolean (common.IncludeEmptyScanTargetTags) (Optional) Return objects without any ScanTarget tags. |
order | string Enum: "resource" "rule" "severity" "state" "openedAt" "resolvedAt" "createdAt" "updatedAt" "scanTargetId" |
{- "rules": [
- "string"
], - "states": [
- "OPEN"
], - "severities": [
- "CRITICAL"
], - "scanTargetKinds": [
- "AWS"
], - "search": "string",
- "lang": "pt-BR",
- "openedAtStart": "2019-08-24T14:15:22Z",
- "openedAtEnd": "2019-08-24T14:15:22Z",
- "resolvedAtStart": "2019-08-24T14:15:22Z",
- "resolvedAtEnd": "2019-08-24T14:15:22Z",
- "createdAtStart": "2019-08-24T14:15:22Z",
- "createdAtEnd": "2019-08-24T14:15:22Z",
- "updatedAtStart": "2019-08-24T14:15:22Z",
- "updatedAtEnd": "2019-08-24T14:15:22Z",
- "sort": "DESC",
- "scanTargetIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "scanTargetTags": [
- "string"
], - "includeEmptyScanTargetTags": true,
- "order": "resource"
}
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "rule": "string",
- "resource": "string",
- "severity": "CRITICAL",
- "state": "OPEN",
- "version": 0,
- "tags": [
- "string"
], - "labels": [
- "string"
], - "compliances": [
- "string"
], - "enrichment": {
- "property1": null,
- "property2": null
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "openedAt": "2019-08-24T14:15:22Z",
- "resolvedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "ruleTitle": "string",
- "timelinessThreshold": 0.1
}
], - "cursor": "string"
}
Get alert count grouped by rules and severities.
organizationId required | string <uuid> (organization.OrganizationId) |
size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
cursor | string |
rules | Array of strings |
states | Array of strings (alert.AlertState) Items Enum: "OPEN" "IN_PROGRESS" "RISK_ACCEPTED" "MITIGATING_CONTROL" "FALSE_POSITIVE" "CLOSED" |
severities | Array of strings (alert.AlertSeverity) Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" |
scanTargetKinds | Array of strings (scantarget.ScanTargetKind) Items Enum: "AWS" "AZURE" "BITBUCKET" "DOMAIN" "GCP" "GITHUB" "GITLAB" "GWORKSPACE" "HUAWEI" "JIRA" "MONGODB_ATLAS" "MS365" "ORACLE" "SALESFORCE" "SLACK" "ZENDESK" "CLOUDFLARE" "CROWDSTRIKE_FALCON" "BITDEFENDER" |
search | string |
lang | string (common.Language) Enum: "pt-BR" "en-US" |
openedAtStart | string <date-time> (common.UTCDateTime) |
openedAtEnd | string <date-time> (common.UTCDateTime) |
resolvedAtStart | string <date-time> (common.UTCDateTime) |
resolvedAtEnd | string <date-time> (common.UTCDateTime) |
createdAtStart | string <date-time> (common.UTCDateTime) |
createdAtEnd | string <date-time> (common.UTCDateTime) |
updatedAtStart | string <date-time> (common.UTCDateTime) |
updatedAtEnd | string <date-time> (common.UTCDateTime) |
sort | string (common.Sort) Enum: "DESC" "ASC" |
scanTargetIds | Array of strings <uuid> (scantarget.ScanTargetId) [ items <uuid > ] |
scanTargetTags | Array of strings (scantarget.ScanTargetTag) |
includeEmptyScanTargetTags | boolean (common.IncludeEmptyScanTargetTags) (Optional) Return objects without any ScanTarget tags. |
order | string Enum: "rule" "severity" "total" |
{- "rules": [
- "string"
], - "states": [
- "OPEN"
], - "severities": [
- "CRITICAL"
], - "scanTargetKinds": [
- "AWS"
], - "search": "string",
- "lang": "pt-BR",
- "openedAtStart": "2019-08-24T14:15:22Z",
- "openedAtEnd": "2019-08-24T14:15:22Z",
- "resolvedAtStart": "2019-08-24T14:15:22Z",
- "resolvedAtEnd": "2019-08-24T14:15:22Z",
- "createdAtStart": "2019-08-24T14:15:22Z",
- "createdAtEnd": "2019-08-24T14:15:22Z",
- "updatedAtStart": "2019-08-24T14:15:22Z",
- "updatedAtEnd": "2019-08-24T14:15:22Z",
- "sort": "DESC",
- "scanTargetIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "scanTargetTags": [
- "string"
], - "includeEmptyScanTargetTags": true,
- "order": "rule"
}
{- "data": [
- {
- "rule": "string",
- "severity": "CRITICAL",
- "timelinessThreshold": 0,
- "total": 0
}
], - "cursor": "string"
}
Edit a batch of alerts (max 1000) based on a set of filters and/or list of IDs.
organizationId required | string <uuid> (organization.OrganizationId) |
state required | Array of strings (alert.AlertState) Items Enum: "OPEN" "IN_PROGRESS" "RISK_ACCEPTED" "MITIGATING_CONTROL" "FALSE_POSITIVE" "CLOSED" |
comment | string |
required | object |
{- "state": [
- "OPEN"
], - "comment": "string",
- "condition": {
- "dryRun": true,
- "scanTargetIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "scanTargetTags": [
- "string"
], - "states": [
- "OPEN"
], - "severities": [
- "CRITICAL"
], - "includeEmptyScanTargetTags": true,
- "selection": {
- "alertIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "rules": [
- "string"
]
}
}
}
{- "count": 0,
- "dryRun": true
}
Get detailed data for a specific alert.
alertId required | string <uuid> (alert.AlertId) |
organizationId required | string <uuid> (organization.OrganizationId) |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/alerts/{alertId}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "rule": "string",
- "resource": "string",
- "severity": "CRITICAL",
- "state": "OPEN",
- "version": 0,
- "tags": [
- "string"
], - "labels": [
- "string"
], - "compliances": [
- "string"
], - "enrichment": {
- "property1": null,
- "property2": null
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "openedAt": "2019-08-24T14:15:22Z",
- "resolvedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "ruleTitle": "string",
- "timelinessThreshold": 0.1
}
Create a new comment for the given alert.
organizationId required | string <uuid> (organization.OrganizationId) |
alertId required | string <uuid> (alert.AlertId) |
comment required | string |
mimeType | string |
{- "comment": "string",
- "mimeType": "string"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "alertId": "a9367074-b5c3-42c4-9be4-be129f43577e",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "comment": "string",
- "mimeType": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
Returns summarized data for the scans pertinent to the user. If scanTargetIds is empty or null, all of the scan targets are included.
Data to filter
organizationId required | string (Organization ID) Organization to filter the summary (OrganizationId) |
scanTargetIds | Array of strings (Scan Target ID) Scan targets to filter summaries from (ScanTargetIds), not passing the field will fetch all |
search | string (search) String to search for |
lang | string (lang) Enum: "pt-BR" "en-US" Language result should be in |
{- "organizationId": "e0000000-a000-a000-a000-000000000001",
- "scanTargetIds": [
- "00000000-0000-4000-a000-000000000001"
], - "search": "dns",
- "lang": "en-US"
}
{- "total": {
- "OPEN": {
- "CRITICAL": 50,
- "HIGH": 50,
- "MEDIUM": 50,
- "LOW": 50,
- "INFO": 50
}, - "CLOSED": {
- "CRITICAL": 60,
- "HIGH": 60,
- "MEDIUM": 60,
- "LOW": 60,
- "INFO": 60
}, - "RISK_ACCEPTED": {
- "CRITICAL": 10,
- "HIGH": 20,
- "MEDIUM": 30,
- "LOW": 40,
- "INFO": 2
}
}, - "scanTargets": {
- "00000000-0000-4000-a000-000000000001": {
- "OPEN": {
- "CRITICAL": 50,
- "HIGH": 50,
- "MEDIUM": 50,
- "LOW": 50,
- "INFO": 50
}, - "CLOSED": {
- "CRITICAL": 60,
- "HIGH": 60,
- "MEDIUM": 60,
- "LOW": 60,
- "INFO": 60
}, - "RISK_ACCEPTED": {
- "CRITICAL": 10,
- "HIGH": 20,
- "MEDIUM": 30,
- "LOW": 40,
- "INFO": 2
}, - "MITIGATING_CONTROL": {
- "CRITICAL": 10,
- "HIGH": 20,
- "MEDIUM": 30,
- "LOW": 40,
- "INFO": 2
}, - "IN_PROGRESS": {
- "CRITICAL": 10,
- "HIGH": 20,
- "MEDIUM": 30,
- "LOW": 40,
- "INFO": 2
}
}
}
}
An endpoint to get summarized data on the trend of resolved alerts by thhe followings over the specified dates.
Data to filter
organizationId required | string (Organization ID) Organization that the requester belongs to, data will be fetched from this organization followings |
followingIds | Array of strings (Following ids) Organizations to filter following alerts from (FollowingIds), all ids must belong to following organizations. not passing the field will fetch from all |
severities | Array of strings (Severities) Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" Severities of the alerts to filter, not passing the field will fetch all. |
dates | Array of strings (Dates) Dates to gather the data for (YYYY-MM-DD format), not passing the field will fetch the data for the current day. A maximum of 12 dates can be passed. Passing dates for which the system has no data will result in that item not being included in the response. |
{- "organizationId": "e0000000-a000-a000-a000-000000000001",
- "followingIds": [
- "00000000-0000-4000-a000-000000000001"
], - "severities": [
- "HIGH",
- "MEDIUM"
], - "dates": [
- "2023-01-01",
- "2023-02-01",
- "2023-03-01",
- "2023-04-01",
- "2023-04-15"
]
}
{- "data": [
- {
- "date": "2023-01-01",
- "discovered": 100,
- "remaining": 50,
- "followingCount": 5,
- "timeliness": 0,
- "updatedAt": "2023-01-01T00:00:00.000Z"
}, - {
- "date": "2023-02-01",
- "discovered": 150,
- "remaining": 100,
- "followingCount": 5,
- "timeliness": 1,
- "updatedAt": "2023-02-01T00:00:00.000Z"
}, - {
- "date": "2023-03-01",
- "discovered": 150,
- "remaining": 78,
- "followingCount": 7,
- "timeliness": 0.5,
- "updatedAt": "2023-03-01T00:00:00.000Z"
}, - {
- "date": "2023-04-01",
- "discovered": 150,
- "remaining": 22,
- "followingCount": 7,
- "updatedAt": "2023-04-01T00:00:00.000Z"
}, - {
- "date": "2023-04-15",
- "discovered": 165,
- "remaining": 5,
- "followingCount": 7,
- "updatedAt": "2023-05-01T00:00:00.000Z"
}
]
}
Returns summarized data for the organizations. Only members of the organization can access. Followers don't see summarized data on the scans. Keys that do not exist in the request body will be ignored.
Data to filter
organizationId required | string (Organization ID) Organization to filter the summary (OrganizationId) |
scanTargetIds | Array of strings (Scan Target ID) Scan targets to filter summaries from (ScanTargetIds), not passing the field will fetch all |
search | string (search) String to search for |
lang | string (lang) Enum: "pt-BR" "en-US" Language result should be in |
{- "organizationId": "e0000000-a000-a000-a000-000000000001",
- "scanTargetIds": [
- "00000000-0000-4000-a000-000000000001"
], - "search": "dns",
- "lang": "en-US"
}
{- "organization": {
- "2021-01-01": {
- "schema": {
- "infos": {
- "OPEN": {
- "CRITICAL": 30,
- "HIGH": 30,
- "MEDIUM": 30,
- "LOW": 30,
- "INFO": 30
}, - "CLOSED": {
- "CRITICAL": 40,
- "HIGH": 40,
- "MEDIUM": 40,
- "LOW": 40,
- "INFO": 40
}
}, - "states": {
- "OPEN": 150,
- "CLOSED": 150
}, - "severities": {
- "CRITICAL": 10,
- "HIGH": 20,
- "MEDIUM": 30,
- "LOW": 40,
- "INFO": 50
}
}
}
}, - "all": {
- "2021-01-01": {
- "schema": {
- "infos": {
- "OPEN": {
- "CRITICAL": 30,
- "HIGH": 30,
- "MEDIUM": 30,
- "LOW": 30,
- "INFO": 30
}, - "CLOSED": {
- "CRITICAL": 40,
- "HIGH": 40,
- "MEDIUM": 40,
- "LOW": 40,
- "INFO": 40
}
}, - "states": {
- "OPEN": 150,
- "CLOSED": 150
}, - "severities": {
- "CRITICAL": 10,
- "HIGH": 20,
- "MEDIUM": 30,
- "LOW": 40,
- "INFO": 50
}
}
}
}
}
Returns summary data for the following organizations. Only members of the organization can access. Keys that do not exist in the request body will be ignored.
Data to filter
organizationId required | string (Organization ID) Organization to filter the summary (OrganizationId) |
followingIds | Array of strings (Following ID) Organization ids of following to filter (FollowingIds) |
daysBefore | integer (Days Before) How many days before the current day to fetch data from (default: 7) |
{- "organizationId": "e0000000-a000-a000-a000-000000000001",
- "followingIds": [
- "00000000-0000-4000-a000-000000000001"
], - "daysBefore": 5
}
{- "organization": {
- "e0000000-a000-a000-a000-000000000001": {
- "2021-01-01": {
- "schema": {
- "infos": {
- "OPEN": {
- "CRITICAL": 30,
- "HIGH": 30,
- "MEDIUM": 30,
- "LOW": 30,
- "INFO": 30
}, - "CLOSED": {
- "CRITICAL": 40,
- "HIGH": 40,
- "MEDIUM": 40,
- "LOW": 40,
- "INFO": 40
}
}, - "states": {
- "OPEN": 150,
- "CLOSED": 150
}, - "severities": {
- "CRITICAL": 10,
- "HIGH": 20,
- "MEDIUM": 30,
- "LOW": 40,
- "INFO": 50
}
}
}
}
}
}
Get following compliance detail summary.
organizationId required | string <uuid> (organization.OrganizationId) Organizaiton Id. |
required | object (summary.Compliance) |
followingIds | Array of strings <uuid> (organization.OrganizationId) [ items <uuid > ] |
followingTags | Array of strings (follow.FollowTag) |
severities | Array of strings (alert.AlertSeverity) Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" |
includeEmptyFollowingTags | boolean (common.IncludeEmptyFollowingTags) (Optional) Return objects without any Following tags. |
{- "compliance": {
- "id": "string",
- "version": "string"
}, - "followingIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "followingTags": [
- "string"
], - "severities": [
- "CRITICAL"
], - "includeEmptyFollowingTags": true
}
{- "data": [
- {
- "complianceId": "string",
- "complianceVersion": "string",
- "complianceItem": "string",
- "complianceTitle": "string",
- "alertResolved": 0,
- "alertDiscovered": 0,
- "alertRemaining": 0,
- "alertTimely": 0,
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "cursor": "string"
}
Get following compliance overtime summary.
organizationId required | string <uuid> (organization.OrganizationId) Organizaiton Id. |
required | object (summary.Compliance) |
dates required | Array of strings (common.UTCDate) |
followingTags | Array of strings (follow.FollowTag) |
followingIds | Array of strings <uuid> (organization.OrganizationId) [ items <uuid > ] |
severities | Array of strings (alert.AlertSeverity) Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" |
includeEmptyFollowingTags | boolean (common.IncludeEmptyFollowingTags) (Optional) Return objects without any Following tags. |
{- "compliance": {
- "id": "string",
- "version": "string"
}, - "dates": [
- "string"
], - "followingTags": [
- "string"
], - "followingIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "severities": [
- "CRITICAL"
], - "includeEmptyFollowingTags": true
}
{- "data": [
- {
- "date": "string",
- "organizationTotal": 0,
- "scanTargetTotal": 0,
- "complianceTotal": 0,
- "complianceCovered": 0,
- "compliancePassed": 0,
- "complianceFailed": 0
}
], - "cursor": "string"
}
Get following scan target summary.
organizationId required | string <uuid> (organization.OrganizationId) Organizaiton Id. |
scanTargetIds | Array of strings <uuid> (scantarget.ScanTargetId) [ 1 .. 10 ] items [ items <uuid > ] |
scanTargetTags | Array of strings (scantarget.ScanTargetTag) non-empty |
scanTargetKinds | Array of strings (scantarget.ScanTargetKind) non-empty Items Enum: "AWS" "AZURE" "BITBUCKET" "DOMAIN" "GCP" "GITHUB" "GITLAB" "GWORKSPACE" "HUAWEI" "JIRA" "MONGODB_ATLAS" "MS365" "ORACLE" "SALESFORCE" "SLACK" "ZENDESK" "CLOUDFLARE" "CROWDSTRIKE_FALCON" "BITDEFENDER" |
alertSeverities | Array of strings (alert.AlertSeverity) non-empty Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" |
{- "scanTargetIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "scanTargetTags": [
- "string"
], - "scanTargetKinds": [
- "AWS"
], - "alertSeverities": [
- "CRITICAL"
]
}
{- "data": [
- {
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "scanTargetKind": "AWS",
- "alertSummary": {
- "property1": {
- "open": 0,
- "inProgress": 0,
- "mitigatingControl": 0,
- "riskAccepted": 0,
- "falsePositive": 0,
- "closed": 0,
- "timely": 0,
- "resolved": 0,
- "discovered": 0,
- "remaining": 0
}, - "property2": {
- "open": 0,
- "inProgress": 0,
- "mitigatingControl": 0,
- "riskAccepted": 0,
- "falsePositive": 0,
- "closed": 0,
- "timely": 0,
- "resolved": 0,
- "discovered": 0,
- "remaining": 0
}
}
}
], - "cursor": "string"
}
Get compliance detail summary.
organizationId required | string <uuid> (organization.OrganizationId) Organizaiton Id. |
required | object (summary.Compliance) |
scanTargetTags | Array of strings (scantarget.ScanTargetTag) |
scanTargetIds | Array of strings <uuid> (scantarget.ScanTargetId) [ items <uuid > ] |
severities | Array of strings (alert.AlertSeverity) Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" |
includeEmptyScanTargetTags | boolean (common.IncludeEmptyScanTargetTags) (Optional) Return objects without any ScanTarget tags. |
{- "compliance": {
- "id": "string",
- "version": "string"
}, - "scanTargetTags": [
- "string"
], - "scanTargetIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "severities": [
- "CRITICAL"
], - "includeEmptyScanTargetTags": true
}
{- "data": [
- {
- "complianceId": "string",
- "complianceVersion": "string",
- "complianceItem": "string",
- "complianceTitle": "string",
- "alertResolved": 0,
- "alertDiscovered": 0,
- "alertRemaining": 0,
- "alertTimely": 0,
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "cursor": "string"
}
Get compliance overtime summary.
organizationId required | string <uuid> (organization.OrganizationId) Organizaiton Id. |
required | object (summary.Compliance) |
dates required | Array of strings (common.UTCDate) |
scanTargetTags | Array of strings (scantarget.ScanTargetTag) |
scanTargetIds | Array of strings <uuid> (scantarget.ScanTargetId) [ items <uuid > ] |
severities | Array of strings (alert.AlertSeverity) Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" |
includeEmptyScanTargetTags | boolean (common.IncludeEmptyScanTargetTags) (Optional) Return objects without any ScanTarget tags. |
{- "compliance": {
- "id": "string",
- "version": "string"
}, - "dates": [
- "string"
], - "scanTargetTags": [
- "string"
], - "scanTargetIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "severities": [
- "CRITICAL"
], - "includeEmptyScanTargetTags": true
}
{- "data": [
- {
- "date": "string",
- "organizationTotal": 0,
- "scanTargetTotal": 0,
- "complianceTotal": 0,
- "complianceCovered": 0,
- "compliancePassed": 0,
- "complianceFailed": 0
}
], - "cursor": "string"
}
get scan target summary.
organizationId required | string <uuid> (organization.OrganizationId) Organization Id. |
scanTargetIds | Array of strings <uuid> (scantarget.ScanTargetId) [ 1 .. 10 ] items [ items <uuid > ] |
scanTargetTags | Array of strings (scantarget.ScanTargetTag) non-empty |
scanTargetKinds | Array of strings (scantarget.ScanTargetKind) non-empty Items Enum: "AWS" "AZURE" "BITBUCKET" "DOMAIN" "GCP" "GITHUB" "GITLAB" "GWORKSPACE" "HUAWEI" "JIRA" "MONGODB_ATLAS" "MS365" "ORACLE" "SALESFORCE" "SLACK" "ZENDESK" "CLOUDFLARE" "CROWDSTRIKE_FALCON" "BITDEFENDER" |
alertSeverities | Array of strings (alert.AlertSeverity) non-empty Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" |
{- "scanTargetIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "scanTargetTags": [
- "string"
], - "scanTargetKinds": [
- "AWS"
], - "alertSeverities": [
- "CRITICAL"
]
}
{- "data": [
- {
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "scanTargetKind": "AWS",
- "alertSummary": {
- "property1": {
- "open": 0,
- "inProgress": 0,
- "mitigatingControl": 0,
- "riskAccepted": 0,
- "falsePositive": 0,
- "closed": 0,
- "timely": 0,
- "resolved": 0,
- "discovered": 0,
- "remaining": 0
}, - "property2": {
- "open": 0,
- "inProgress": 0,
- "mitigatingControl": 0,
- "riskAccepted": 0,
- "falsePositive": 0,
- "closed": 0,
- "timely": 0,
- "resolved": 0,
- "discovered": 0,
- "remaining": 0
}
}
}
], - "cursor": "string"
}
Create document to export alerts of organizations (one or more). Only CSV format. Only members or followers can access. Deprecated, use POST /organizations/{organizationId}/documents
. To see the documentation, look for the Organization Documents section.
language required | string (language) User Language |
service required | string (service) Document service |
formats required | Array of arrays (Email) Document type. Only CSV format |
required | object (Filter param) |
{- "language": "pt-BR",
- "service": "following.alert.list",
- "formats": [
- "CSV"
], - "filterParam": {
- "organizationId": [
- "000086d0-0000-0000-0000-00000023ea00"
], - "followingIds": [
- "000086d0-0000-0000-0000-00000023ea00"
], - "alertStates": [
- "OPEN",
- "IN_PROGRESS"
], - "alertSeverities": [
- "HIGH",
- "CRITICAL"
], - "detailed": false
}
}
{- "language": "pt-BR",
- "service": "following.alert.list",
- "formats": [
- "CSV"
], - "filterParam": {
- "organizationId": [
- "000086d0-0000-0000-0000-00000023ea00"
], - "followingIds": [
- "000086d0-0000-0000-0000-00000023ea00"
], - "alertStates": [
- "OPEN",
- "IN_PROGRESS"
], - "alertSeverities": [
- "HIGH",
- "CRITICAL"
], - "detailed": false
}, - "status": "PENDING",
- "createdAt": "2023-01-13T12:34:56.123Z",
- "expires": 1684093592.15,
- "userId": "000086d0-0000-0000-0000-00000023ea00",
- "id": "000086d0-0000-0000-0000-00000023ea00"
}
Deletes an generated document alerts. Only members or followers can access.
documentId required | string Document Identifier |
curl -X 'DELETE' \ 'https://api.zanshin.tenchisecurity.com/me/documents/{documentId}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
true
type required | string Value: "EVENT" |
required | object (document.EventParams) |
{- "type": "EVENT",
- "params": {
- "filter": {
- "name": "string",
- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z"
}
}
}
id required | string <uuid> (common.EventId) |
name required | string Value: "AlertCommentCreated" |
source required | string Value: "zanshin.alert.comment" |
version required | integer <uint32> |
required | object (alert.AlertComment) |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "AlertCommentCreated",
- "source": "zanshin.alert.comment",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "alertId": "a9367074-b5c3-42c4-9be4-be129f43577e",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "comment": "string",
- "mimeType": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "AlertCreated" |
source required | string Value: "zanshin.alert" |
version required | integer <uint32> |
required | object (alert.Alert) The template for picking properties. |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "AlertCreated",
- "source": "zanshin.alert",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "rule": "string",
- "resource": "string",
- "severity": "CRITICAL",
- "state": "OPEN",
- "version": 0,
- "tags": [
- "string"
], - "labels": [
- "string"
], - "compliances": [
- "string"
], - "enrichment": {
- "property1": null,
- "property2": null
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "openedAt": "2019-08-24T14:15:22Z",
- "resolvedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "ruleTitle": "string",
- "timelinessThreshold": 0.1
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "AlertFollowingCreated" |
source required | string Value: "zanshin.alert" |
version required | integer <uint32> |
required | object (alert.Alert) The template for picking properties. |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "AlertFollowingCreated",
- "source": "zanshin.alert",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "rule": "string",
- "resource": "string",
- "severity": "CRITICAL",
- "state": "OPEN",
- "version": 0,
- "tags": [
- "string"
], - "labels": [
- "string"
], - "compliances": [
- "string"
], - "enrichment": {
- "property1": null,
- "property2": null
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "openedAt": "2019-08-24T14:15:22Z",
- "resolvedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "ruleTitle": "string",
- "timelinessThreshold": 0.1
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "AlertFollowingUpdated" |
source required | string Value: "zanshin.alert" |
version required | integer <uint32> |
required | object (alert.Alert) The template for picking properties. |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "AlertFollowingUpdated",
- "source": "zanshin.alert",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "rule": "string",
- "resource": "string",
- "severity": "CRITICAL",
- "state": "OPEN",
- "version": 0,
- "tags": [
- "string"
], - "labels": [
- "string"
], - "compliances": [
- "string"
], - "enrichment": {
- "property1": null,
- "property2": null
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "openedAt": "2019-08-24T14:15:22Z",
- "resolvedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "ruleTitle": "string",
- "timelinessThreshold": 0.1
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "AlertUpdated" |
source required | string Value: "zanshin.alert" |
version required | integer <uint32> |
required | object (alert.Alert) The template for picking properties. |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "AlertUpdated",
- "source": "zanshin.alert",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "rule": "string",
- "resource": "string",
- "severity": "CRITICAL",
- "state": "OPEN",
- "version": 0,
- "tags": [
- "string"
], - "labels": [
- "string"
], - "compliances": [
- "string"
], - "enrichment": {
- "property1": null,
- "property2": null
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "openedAt": "2019-08-24T14:15:22Z",
- "resolvedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "ruleTitle": "string",
- "timelinessThreshold": 0.1
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "FollowerAccepted" |
source required | string Value: "zanshin.follower" |
version required | integer <uint32> |
required | object (follow.FollowRequest) The template for picking properties. |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "FollowerAccepted",
- "source": "zanshin.follower",
- "version": 0,
- "data": {
- "followingId": "6338e9fd-6a02-4721-9c37-b1e04d194fe9",
- "followingName": "string",
- "followerId": "62213f7a-f0bf-47a0-a6dd-74e2885412b0",
- "followerName": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "FollowerDeclined" |
source required | string Value: "zanshin.follower" |
version required | integer <uint32> |
required | object (follow.FollowRequest) The template for picking properties. |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "FollowerDeclined",
- "source": "zanshin.follower",
- "version": 0,
- "data": {
- "followingId": "6338e9fd-6a02-4721-9c37-b1e04d194fe9",
- "followingName": "string",
- "followerId": "62213f7a-f0bf-47a0-a6dd-74e2885412b0",
- "followerName": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "FollowerDeleted" |
source required | string Value: "zanshin.follower" |
version required | integer <uint32> |
required | object (follow.FollowerInfo) |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "FollowerDeleted",
- "source": "zanshin.follower",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "picture": "string",
- "status": "ACTIVE",
- "share": {
- "mode": "SCAN_TARGET_TAGS",
- "scanTargetTags": [
- "string"
]
}, - "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "score": 0
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "FollowerRequested" |
source required | string Value: "zanshin.follower" |
version required | integer <uint32> |
required | object (follow.FollowRequest) The template for picking properties. |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "FollowerRequested",
- "source": "zanshin.follower",
- "version": 0,
- "data": {
- "followingId": "6338e9fd-6a02-4721-9c37-b1e04d194fe9",
- "followingName": "string",
- "followerId": "62213f7a-f0bf-47a0-a6dd-74e2885412b0",
- "followerName": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "FollowerUpdated" |
source required | string Value: "zanshin.follower" |
version required | integer <uint32> |
required | object (follow.FollowerInfo) |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "FollowerUpdated",
- "source": "zanshin.follower",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "picture": "string",
- "status": "ACTIVE",
- "share": {
- "mode": "SCAN_TARGET_TAGS",
- "scanTargetTags": [
- "string"
]
}, - "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "score": 0
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "FollowingAccepted" |
source required | string Value: "zanshin.following" |
version required | integer <uint32> |
required | object (follow.FollowRequest) The template for picking properties. |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "FollowingAccepted",
- "source": "zanshin.following",
- "version": 0,
- "data": {
- "followingId": "6338e9fd-6a02-4721-9c37-b1e04d194fe9",
- "followingName": "string",
- "followerId": "62213f7a-f0bf-47a0-a6dd-74e2885412b0",
- "followerName": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "FollowingDeclined" |
source required | string Value: "zanshin.following" |
version required | integer <uint32> |
required | object (follow.FollowRequest) The template for picking properties. |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "FollowingDeclined",
- "source": "zanshin.following",
- "version": 0,
- "data": {
- "followingId": "6338e9fd-6a02-4721-9c37-b1e04d194fe9",
- "followingName": "string",
- "followerId": "62213f7a-f0bf-47a0-a6dd-74e2885412b0",
- "followerName": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "FollowingDeleted" |
source required | string Value: "zanshin.following" |
version required | integer <uint32> |
required | object (follow.FollowingInfo) |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "FollowingDeleted",
- "source": "zanshin.following",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "picture": "string",
- "status": "ACTIVE",
- "tags": [
- "string"
], - "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "score": 0
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "FollowingRequested" |
source required | string Value: "zanshin.following" |
version required | integer <uint32> |
required | object (follow.FollowRequest) The template for picking properties. |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "FollowingRequested",
- "source": "zanshin.following",
- "version": 0,
- "data": {
- "followingId": "6338e9fd-6a02-4721-9c37-b1e04d194fe9",
- "followingName": "string",
- "followerId": "62213f7a-f0bf-47a0-a6dd-74e2885412b0",
- "followerName": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "FollowingUpdated" |
source required | string Value: "zanshin.following" |
version required | integer <uint32> |
required | object (follow.FollowingInfo) |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "FollowingUpdated",
- "source": "zanshin.following",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "picture": "string",
- "status": "ACTIVE",
- "tags": [
- "string"
], - "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "score": 0
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "MemberCreated" |
source required | string Value: "zanshin.member" |
version required | integer <uint32> |
required | object (member.Member) The template for picking properties. |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "MemberCreated",
- "source": "zanshin.member",
- "version": 0,
- "data": {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "name": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "identityProvider": "string",
- "lastIp": "string",
- "lastLogin": "string",
- "loginsCount": 0,
- "picture": "string"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "MemberDeleted" |
source required | string Value: "zanshin.member" |
version required | integer <uint32> |
required | object (member.Member) The template for picking properties. |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "MemberDeleted",
- "source": "zanshin.member",
- "version": 0,
- "data": {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "name": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "identityProvider": "string",
- "lastIp": "string",
- "lastLogin": "string",
- "loginsCount": 0,
- "picture": "string"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "MemberInviteAccepted" |
source required | string Value: "zanshin.member" |
version required | integer <uint32> |
required | object (member.MemberInvite) The template for picking properties. |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "MemberInviteAccepted",
- "source": "zanshin.member",
- "version": 0,
- "data": {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "organizationName": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "expiredAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "MemberInviteCreated" |
source required | string Value: "zanshin.member" |
version required | integer <uint32> |
required | object (member.MemberInvite) The template for picking properties. |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "MemberInviteCreated",
- "source": "zanshin.member",
- "version": 0,
- "data": {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "organizationName": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "expiredAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "MemberInviteDeleted" |
source required | string Value: "zanshin.member" |
version required | integer <uint32> |
required | object (member.MemberInvite) The template for picking properties. |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "MemberInviteDeleted",
- "source": "zanshin.member",
- "version": 0,
- "data": {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "organizationName": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "expiredAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "MemberInviteResent" |
source required | string Value: "zanshin.member" |
version required | integer <uint32> |
required | object (member.MemberInvite) The template for picking properties. |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "MemberInviteResent",
- "source": "zanshin.member",
- "version": 0,
- "data": {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "organizationName": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "expiredAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "MemberMfaResetRequested" |
source required | string Value: "zanshin.member" |
version required | integer <uint32> |
required | object (member.Member) The template for picking properties. |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "MemberMfaResetRequested",
- "source": "zanshin.member",
- "version": 0,
- "data": {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "name": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "identityProvider": "string",
- "lastIp": "string",
- "lastLogin": "string",
- "loginsCount": 0,
- "picture": "string"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "MemberPasswordResetRequested" |
source required | string Value: "zanshin.member" |
version required | integer <uint32> |
required | object (member.Member) The template for picking properties. |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "MemberPasswordResetRequested",
- "source": "zanshin.member",
- "version": 0,
- "data": {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "name": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "identityProvider": "string",
- "lastIp": "string",
- "lastLogin": "string",
- "loginsCount": 0,
- "picture": "string"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "MemberUpdated" |
source required | string Value: "zanshin.member" |
version required | integer <uint32> |
required | object (member.Member) The template for picking properties. |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "MemberUpdated",
- "source": "zanshin.member",
- "version": 0,
- "data": {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "name": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "identityProvider": "string",
- "lastIp": "string",
- "lastLogin": "string",
- "loginsCount": 0,
- "picture": "string"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "OrganizationCreated" |
source required | string Value: "zanshin.organization" |
version required | integer <uint32> |
required | object (organization.Organization) The template for picking properties. |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "OrganizationCreated",
- "source": "zanshin.organization",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "picture": "string",
- "email": "string",
- "features": [
- "string"
], - "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "score": 0
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "OrganizationDeleted" |
source required | string Value: "zanshin.organization" |
version required | integer <uint32> |
required | object (organization.Organization) The template for picking properties. |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "OrganizationDeleted",
- "source": "zanshin.organization",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "picture": "string",
- "email": "string",
- "features": [
- "string"
], - "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "score": 0
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "OrganizationUpdated" |
source required | string Value: "zanshin.organization" |
version required | integer <uint32> |
required | object (organization.Organization) The template for picking properties. |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "OrganizationUpdated",
- "source": "zanshin.organization",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "picture": "string",
- "email": "string",
- "features": [
- "string"
], - "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "score": 0
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "AnswerCreated" |
source required | string Value: "zanshin.questionnaire.answer" |
version required | integer <uint32> |
required | object (questionnaire.Answer) |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "AnswerCreated",
- "source": "zanshin.questionnaire.answer",
- "version": 0,
- "data": {
- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "questionId": "ffa0420e-f70b-4e5b-99a0-434bff860467",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "senderId": "6b2f63ba-164c-48c9-87b1-690cee2b3da3",
- "receiverId": "2ec2e5a9-5968-4568-baf3-a525f7f8b9a6",
- "content": [
- {
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "accessControl": {
- "type": "PUBLIC"
}, - "status": "NEW",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "_TTL": 0
}
], - "content": {
- "type": "EMPTY"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
], - "status": "NEW",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "AnswerUpdated" |
source required | string Value: "zanshin.questionnaire.answer" |
version required | integer <uint32> |
required | object (questionnaire.Answer) |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "AnswerUpdated",
- "source": "zanshin.questionnaire.answer",
- "version": 0,
- "data": {
- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "questionId": "ffa0420e-f70b-4e5b-99a0-434bff860467",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "senderId": "6b2f63ba-164c-48c9-87b1-690cee2b3da3",
- "receiverId": "2ec2e5a9-5968-4568-baf3-a525f7f8b9a6",
- "content": [
- {
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "accessControl": {
- "type": "PUBLIC"
}, - "status": "NEW",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "_TTL": 0
}
], - "content": {
- "type": "EMPTY"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
], - "status": "NEW",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "AssessmentCommentCreated" |
source required | string Value: "zanshin.assessment.comment" |
version required | integer <uint32> |
required | object (questionnaire.AssessmentComment) |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "AssessmentCommentCreated",
- "source": "zanshin.assessment.comment",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "questionId": "ffa0420e-f70b-4e5b-99a0-434bff860467",
- "content": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "accessControl": {
- "type": "PUBLIC"
}, - "status": "NEW",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "_TTL": 0
}
]
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "AssessmentCreated" |
source required | string Value: "zanshin.assessment" |
version required | integer <uint32> |
required | object (questionnaire.Assessment) |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "AssessmentCreated",
- "source": "zanshin.assessment",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "senderId": "6b2f63ba-164c-48c9-87b1-690cee2b3da3",
- "receiverId": "2ec2e5a9-5968-4568-baf3-a525f7f8b9a6",
- "dueDate": "2019-08-24T14:15:22Z",
- "firstRequestedReviewAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "description": "string",
- "status": "NEW",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "AssessmentUpdated" |
source required | string Value: "zanshin.assessment" |
version required | integer <uint32> |
required | object (questionnaire.Assessment) |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "AssessmentUpdated",
- "source": "zanshin.assessment",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "senderId": "6b2f63ba-164c-48c9-87b1-690cee2b3da3",
- "receiverId": "2ec2e5a9-5968-4568-baf3-a525f7f8b9a6",
- "dueDate": "2019-08-24T14:15:22Z",
- "firstRequestedReviewAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "description": "string",
- "status": "NEW",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "ElementCreated" |
source required | string Value: "zanshin.questionnaire.element" |
version required | integer <uint32> |
required | object (questionnaire.Element) |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "ElementCreated",
- "source": "zanshin.questionnaire.element",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "order": "string",
- "type": "QUESTION",
- "props": {
- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "accessControl": {
- "type": "PUBLIC"
}, - "status": "NEW",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "_TTL": 0
}
]
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "ElementDeleted" |
source required | string Value: "zanshin.questionnaire.element" |
version required | integer <uint32> |
required | object (questionnaire.Element) |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "ElementDeleted",
- "source": "zanshin.questionnaire.element",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "order": "string",
- "type": "QUESTION",
- "props": {
- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "accessControl": {
- "type": "PUBLIC"
}, - "status": "NEW",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "_TTL": 0
}
]
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "ElementUpdated" |
source required | string Value: "zanshin.questionnaire.element" |
version required | integer <uint32> |
required | object (questionnaire.Element) |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "ElementUpdated",
- "source": "zanshin.questionnaire.element",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "order": "string",
- "type": "QUESTION",
- "props": {
- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "accessControl": {
- "type": "PUBLIC"
}, - "status": "NEW",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "_TTL": 0
}
]
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "QuestionCreated" |
source required | string Value: "zanshin.questionnaire.question" |
version required | integer <uint32> |
required | object (questionnaire.Question) |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "QuestionCreated",
- "source": "zanshin.questionnaire.question",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "order": "string",
- "type": "QUESTION",
- "props": {
- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "accessControl": {
- "type": "PUBLIC"
}, - "status": "NEW",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "_TTL": 0
}
]
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "QuestionDeleted" |
source required | string Value: "zanshin.questionnaire.question" |
version required | integer <uint32> |
required | object (questionnaire.Question) |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "QuestionDeleted",
- "source": "zanshin.questionnaire.question",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "order": "string",
- "type": "QUESTION",
- "props": {
- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "accessControl": {
- "type": "PUBLIC"
}, - "status": "NEW",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "_TTL": 0
}
]
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "QuestionUpdated" |
source required | string Value: "zanshin.questionnaire.question" |
version required | integer <uint32> |
required | object (questionnaire.Question) |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "QuestionUpdated",
- "source": "zanshin.questionnaire.question",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "order": "string",
- "type": "QUESTION",
- "props": {
- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "accessControl": {
- "type": "PUBLIC"
}, - "status": "NEW",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "_TTL": 0
}
]
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "QuestionnaireCreated" |
source required | string Value: "zanshin.questionnaire" |
version required | integer <uint32> |
required | object (questionnaire.Questionnaire) |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "QuestionnaireCreated",
- "source": "zanshin.questionnaire",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "version": 0,
- "name": "string",
- "description": "string",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "QuestionnairePublished" |
source required | string Value: "zanshin.questionnaire" |
version required | integer <uint32> |
required | object (questionnaire.Questionnaire) |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "QuestionnairePublished",
- "source": "zanshin.questionnaire",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "version": 0,
- "name": "string",
- "description": "string",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "QuestionnaireSent" |
source required | string Value: "zanshin.questionnaire" |
version required | integer <uint32> |
required | object (questionnaire.Questionnaire) |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "QuestionnaireSent",
- "source": "zanshin.questionnaire",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "version": 0,
- "name": "string",
- "description": "string",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "QuestionnaireUpdated" |
source required | string Value: "zanshin.questionnaire" |
version required | integer <uint32> |
required | object (questionnaire.Questionnaire) |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "QuestionnaireUpdated",
- "source": "zanshin.questionnaire",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "version": 0,
- "name": "string",
- "description": "string",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "ScanCreated" |
source required | string Value: "zanshin.scan" |
version required | integer <uint32> |
required | object (scan.Scan) The template for picking properties. |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "ScanCreated",
- "source": "zanshin.scan",
- "version": 0,
- "data": {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "slot": "2019-08-24T14:15:22Z",
- "status": "RUNNING",
- "summary": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "ScanUpdated" |
source required | string Value: "zanshin.scan" |
version required | integer <uint32> |
required | object (scan.Scan) The template for picking properties. |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "ScanUpdated",
- "source": "zanshin.scan",
- "version": 0,
- "data": {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "slot": "2019-08-24T14:15:22Z",
- "status": "RUNNING",
- "summary": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "ScanTargetCreated" |
source required | string Value: "zanshin.scanTarget" |
version required | integer <uint32> |
required | object (scantarget.ScanTarget) The template for picking properties. |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "ScanTargetCreated",
- "source": "zanshin.scanTarget",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "kind": "AWS",
- "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",
- "account": "string",
- "schedule": {
- "frequency": "string",
- "timeOfDay": "string"
}, - "credential": {
- "property1": "string",
- "property2": "string"
}, - "status": "NEW",
- "notification": [
- "CRITICAL"
], - "lastScan": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "currentScanSlot": "2019-08-24T14:15:22Z",
- "lastScanSlot": "2019-08-24T14:15:22Z",
- "share": {
- "mode": "ALL"
}, - "tags": [
- "string"
]
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "ScanTargetDeleted" |
source required | string Value: "zanshin.scanTarget" |
version required | integer <uint32> |
required | object (scantarget.ScanTarget) The template for picking properties. |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "ScanTargetDeleted",
- "source": "zanshin.scanTarget",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "kind": "AWS",
- "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",
- "account": "string",
- "schedule": {
- "frequency": "string",
- "timeOfDay": "string"
}, - "credential": {
- "property1": "string",
- "property2": "string"
}, - "status": "NEW",
- "notification": [
- "CRITICAL"
], - "lastScan": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "currentScanSlot": "2019-08-24T14:15:22Z",
- "lastScanSlot": "2019-08-24T14:15:22Z",
- "share": {
- "mode": "ALL"
}, - "tags": [
- "string"
]
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "ScanTargetUpdated" |
source required | string Value: "zanshin.scanTarget" |
version required | integer <uint32> |
required | object (scantarget.ScanTarget) The template for picking properties. |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "ScanTargetUpdated",
- "source": "zanshin.scanTarget",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "kind": "AWS",
- "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",
- "account": "string",
- "schedule": {
- "frequency": "string",
- "timeOfDay": "string"
}, - "credential": {
- "property1": "string",
- "property2": "string"
}, - "status": "NEW",
- "notification": [
- "CRITICAL"
], - "lastScan": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "currentScanSlot": "2019-08-24T14:15:22Z",
- "lastScanSlot": "2019-08-24T14:15:22Z",
- "share": {
- "mode": "ALL"
}, - "tags": [
- "string"
]
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "WebhookCreated" |
source required | string Value: "zanshin.webhook" |
version required | integer <uint32> |
required | object (webhook.Webhook) Webhook data |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "WebhookCreated",
- "source": "zanshin.webhook",
- "version": 0,
- "data": {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "url": "string",
- "authorizationType": "NONE",
- "events": [
- "string"
], - "status": "NEW",
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "WebhookDeleted" |
source required | string Value: "zanshin.webhook" |
version required | integer <uint32> |
required | object (webhook.Webhook) Webhook data |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "WebhookDeleted",
- "source": "zanshin.webhook",
- "version": 0,
- "data": {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "url": "string",
- "authorizationType": "NONE",
- "events": [
- "string"
], - "status": "NEW",
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
id required | string <uuid> (common.EventId) |
name required | string Value: "WebhookUpdated" |
source required | string Value: "zanshin.webhook" |
version required | integer <uint32> |
required | object (webhook.Webhook) Webhook data |
required | object |
createdAt required | string <date-time> (common.UTCDateTime) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "WebhookUpdated",
- "source": "zanshin.webhook",
- "version": 0,
- "data": {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "url": "string",
- "authorizationType": "NONE",
- "events": [
- "string"
], - "status": "NEW",
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
cursor | string |
organizationId required | string <uuid> (organization.OrganizationId) |
followingIds | Array of strings <uuid> (scantarget.ScanTargetId) [ items <uuid > ] |
lang | string (common.Language) Enum: "pt-BR" "en-US" |
pageSize required | integer |
cursor | string |
{- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "followingIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "lang": "pt-BR",
- "pageSize": 0,
- "cursor": "string"
}
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "rule": "string",
- "resource": "string",
- "severity": "CRITICAL",
- "state": "OPEN",
- "version": 0,
- "labels": [
- "string"
], - "enrichment": {
- "property1": null,
- "property2": null
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "openedAt": "2019-08-24T14:15:22Z",
- "resolvedAt": "2019-08-24T14:15:22Z",
- "ruleTitle": "string",
- "timelinessThreshold": 0.1,
- "tags": [
- "string"
], - "operation": "string",
- "cursor": "string"
}
], - "cursor": "string"
}
List all alerts for followed organizations.
organizationId required | string <uuid> (organization.OrganizationId) |
size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
cursor | string |
rules | Array of strings |
states | Array of strings (alert.AlertState) Items Enum: "OPEN" "IN_PROGRESS" "RISK_ACCEPTED" "MITIGATING_CONTROL" "FALSE_POSITIVE" "CLOSED" |
severities | Array of strings (alert.AlertSeverity) Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" |
scanTargetKinds | Array of strings (scantarget.ScanTargetKind) Items Enum: "AWS" "AZURE" "BITBUCKET" "DOMAIN" "GCP" "GITHUB" "GITLAB" "GWORKSPACE" "HUAWEI" "JIRA" "MONGODB_ATLAS" "MS365" "ORACLE" "SALESFORCE" "SLACK" "ZENDESK" "CLOUDFLARE" "CROWDSTRIKE_FALCON" "BITDEFENDER" |
search | string |
lang | string (common.Language) Enum: "pt-BR" "en-US" |
openedAtStart | string <date-time> (common.UTCDateTime) |
openedAtEnd | string <date-time> (common.UTCDateTime) |
resolvedAtStart | string <date-time> (common.UTCDateTime) |
resolvedAtEnd | string <date-time> (common.UTCDateTime) |
createdAtStart | string <date-time> (common.UTCDateTime) |
createdAtEnd | string <date-time> (common.UTCDateTime) |
updatedAtStart | string <date-time> (common.UTCDateTime) |
updatedAtEnd | string <date-time> (common.UTCDateTime) |
sort | string (common.Sort) Enum: "DESC" "ASC" |
followingIds | Array of strings <uuid> (organization.OrganizationId) [ items <uuid > ] |
followingTags | Array of strings (follow.FollowTag) |
includeEmptyFollowingTags | boolean (common.IncludeEmptyFollowingTags) (Optional) Return objects without any Following tags. |
order | string Enum: "resource" "rule" "severity" "state" "openedAt" "resolvedAt" "createdAt" "updatedAt" "followingIds" |
{- "rules": [
- "string"
], - "states": [
- "OPEN"
], - "severities": [
- "CRITICAL"
], - "scanTargetKinds": [
- "AWS"
], - "search": "string",
- "lang": "pt-BR",
- "openedAtStart": "2019-08-24T14:15:22Z",
- "openedAtEnd": "2019-08-24T14:15:22Z",
- "resolvedAtStart": "2019-08-24T14:15:22Z",
- "resolvedAtEnd": "2019-08-24T14:15:22Z",
- "createdAtStart": "2019-08-24T14:15:22Z",
- "createdAtEnd": "2019-08-24T14:15:22Z",
- "updatedAtStart": "2019-08-24T14:15:22Z",
- "updatedAtEnd": "2019-08-24T14:15:22Z",
- "sort": "DESC",
- "followingIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "followingTags": [
- "string"
], - "includeEmptyFollowingTags": true,
- "order": "resource"
}
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "rule": "string",
- "resource": "string",
- "severity": "CRITICAL",
- "state": "OPEN",
- "version": 0,
- "tags": [
- "string"
], - "labels": [
- "string"
], - "compliances": [
- "string"
], - "enrichment": {
- "property1": null,
- "property2": null
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "openedAt": "2019-08-24T14:15:22Z",
- "resolvedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "ruleTitle": "string",
- "timelinessThreshold": 0.1
}
], - "cursor": "string"
}
Get followed organizations alert data grouped by rule and severities
organizationId required | string <uuid> (organization.OrganizationId) |
size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
cursor | string |
rules | Array of strings |
states | Array of strings (alert.AlertState) Items Enum: "OPEN" "IN_PROGRESS" "RISK_ACCEPTED" "MITIGATING_CONTROL" "FALSE_POSITIVE" "CLOSED" |
severities | Array of strings (alert.AlertSeverity) Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" |
scanTargetKinds | Array of strings (scantarget.ScanTargetKind) Items Enum: "AWS" "AZURE" "BITBUCKET" "DOMAIN" "GCP" "GITHUB" "GITLAB" "GWORKSPACE" "HUAWEI" "JIRA" "MONGODB_ATLAS" "MS365" "ORACLE" "SALESFORCE" "SLACK" "ZENDESK" "CLOUDFLARE" "CROWDSTRIKE_FALCON" "BITDEFENDER" |
search | string |
lang | string (common.Language) Enum: "pt-BR" "en-US" |
openedAtStart | string <date-time> (common.UTCDateTime) |
openedAtEnd | string <date-time> (common.UTCDateTime) |
resolvedAtStart | string <date-time> (common.UTCDateTime) |
resolvedAtEnd | string <date-time> (common.UTCDateTime) |
createdAtStart | string <date-time> (common.UTCDateTime) |
createdAtEnd | string <date-time> (common.UTCDateTime) |
updatedAtStart | string <date-time> (common.UTCDateTime) |
updatedAtEnd | string <date-time> (common.UTCDateTime) |
sort | string (common.Sort) Enum: "DESC" "ASC" |
followingIds | Array of strings <uuid> (organization.OrganizationId) [ items <uuid > ] |
followingTags | Array of strings (follow.FollowTag) |
includeEmptyFollowingTags | boolean (common.IncludeEmptyFollowingTags) (Optional) Return objects without any Following tags. |
order | string Enum: "rule" "severity" "total" |
{- "rules": [
- "string"
], - "states": [
- "OPEN"
], - "severities": [
- "CRITICAL"
], - "scanTargetKinds": [
- "AWS"
], - "search": "string",
- "lang": "pt-BR",
- "openedAtStart": "2019-08-24T14:15:22Z",
- "openedAtEnd": "2019-08-24T14:15:22Z",
- "resolvedAtStart": "2019-08-24T14:15:22Z",
- "resolvedAtEnd": "2019-08-24T14:15:22Z",
- "createdAtStart": "2019-08-24T14:15:22Z",
- "createdAtEnd": "2019-08-24T14:15:22Z",
- "updatedAtStart": "2019-08-24T14:15:22Z",
- "updatedAtEnd": "2019-08-24T14:15:22Z",
- "sort": "DESC",
- "followingIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "followingTags": [
- "string"
], - "includeEmptyFollowingTags": true,
- "order": "rule"
}
{- "data": [
- {
- "rule": "string",
- "severity": "CRITICAL",
- "timelinessThreshold": 0,
- "total": 0
}
], - "cursor": "string"
}
Creates an Attachment.
fileName required | string |
contentLength required | number |
contentType required | string |
contentMD5 required | string |
expiresAt required | string <date-time> (common.UTCDateTime) |
{- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "expiresAt": "2019-08-24T14:15:22Z"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "accessControl": {
- "type": "PUBLIC"
}, - "status": "NEW",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "_TTL": 0
}
Details an Attachment.
attachmentId required | string <uuid> (common.AttachmentId) |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/attachment/{attachmentId}/' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}' \
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "accessControl": {
- "type": "PUBLIC"
}, - "status": "NEW",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "_TTL": 0
}
Retrieve a link to allow the user to authorize zanshin to read info from their Bitbucket environment.
organizationId required | string <uuid> (organization.OrganizationId) |
required | scantarget.ScanTargetId (string) or scantarget.ScanTargetGroupId (string) |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/bitbucket/oauth/link?organizationId={organizationId}&scanTargetId={scanTargetId}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
{- "url": "string"
}
Retrieve a link to allow the user to authorize zanshin to read info from their Gitlab environment.
organizationId required | string <uuid> (organization.OrganizationId) |
required | scantarget.ScanTargetId (string) or scantarget.ScanTargetGroupId (string) |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/gitlab/oauth/link?organizationId={organizationId}&scanTargetId={scanTargetId}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'\
{- "url": "string"
}
Retrieve a link to allow the user to authorize zanshin to read info from their Google Workspace environment.
organizationId required | string <uuid> (organization.OrganizationId) |
scanTargetId required | string <uuid> (scantarget.ScanTargetId) |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/gworkspace/oauth/link?organizationId={organizationId}&scanTargetId={scanTargetId}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
{- "url": "string"
}
Retrieve a link to allow the user to authorize zanshin to read info from their Jira environment.
organizationId required | string <uuid> (organization.OrganizationId) |
scanTargetId required | string <uuid> (scantarget.ScanTargetId) |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/jira/oauth/link?organizationId={organizationId}&scanTargetId={scanTargetId}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
{- "url": "string"
}
Retrieve a link to allow the user to authorize zanshin to read info from their Zendesk environment.
organizationId required | string <uuid> (organization.OrganizationId) |
scanTargetId required | string <uuid> (scantarget.ScanTargetId) |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/slack/oauth/link?organizationId={organizationId}&scanTargetId={scanTargetId}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
{- "url": "string"
}
Retrieve a link to allow the user to authorize zanshin to read info from their Salesforce environment.
organizationId required | string <uuid> (organization.OrganizationId) |
scanTargetId required | string <uuid> (scantarget.ScanTargetId) |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/salesforce/oauth/link?organizationId={organizationId}&scanTargetId={scanTargetId}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
{- "url": "string"
}
Retrieve a link to allow the user to authorize zanshin to read info from their Slack environment.
organizationId required | string <uuid> (organization.OrganizationId) |
scanTargetId required | string <uuid> (scantarget.ScanTargetId) |
curl -X 'GET' \ 'https://api.zanshin.tenchisecurity.com/slack/oauth/link?organizationId={organizationId}&scanTargetId={scanTargetId}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {AUTH_TOKEN}'
{- "url": "string"
}
Create document to export alerts of organizations (CSV), following organizations (CSV), organization events (CSV), third party reports (PDF) and questionnaire reports (PDF).
Only members or followers can access.
This endpoint creates a pending request to generate an attachment with the export. When the export is ready, the status will change from PENDING
to DONE
and the field attachmentId will contain the id of the attachment that contains the download URL. The request GET /attachment/{attachmentId}
returns details of the attachment.
To export alerts of organizations, the filter is the same used to list alerts in POST /organizations/{organizationId}/alerts
.
To export alerts of following organizations, the filter is the same used to list following alerts in POST /organizations/{organizationId}/followings/alerts
.
organizationId required | string <uuid> (organization.OrganizationId) |
type required | string Value: "QUESTIONNAIRE_REPORT" |
required | object (document.QuestionnaireReportParams) |
{- "type": "QUESTIONNAIRE_REPORT",
- "params": {
- "language": "pt-BR",
- "filter": {
- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "includeAnswers": true
}
}
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "attachmentId": "96b9bbac-86d3-4497-9e0c-1f8e3803eddb",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "status": "PENDING",
- "type": "QUESTIONNAIRE_REPORT",
- "params": {
- "language": "pt-BR",
- "filter": {
- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "includeAnswers": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
Accept a following request.
organizationId required | string <uuid> (organization.OrganizationId) Organization Id. |
followerId required | string <uuid> (organization.OrganizationId) Follower Id. |
{- "followingId": "6338e9fd-6a02-4721-9c37-b1e04d194fe9",
- "followingName": "string",
- "followerId": "62213f7a-f0bf-47a0-a6dd-74e2885412b0",
- "followerName": "string",
- "tags": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z"
}
Decline a following request.
organizationId required | string <uuid> (organization.OrganizationId) Organization Id. |
followerId required | string <uuid> (organization.OrganizationId) Follower Id. |
{- "followingId": "6338e9fd-6a02-4721-9c37-b1e04d194fe9",
- "followingName": "string",
- "followerId": "62213f7a-f0bf-47a0-a6dd-74e2885412b0",
- "followerName": "string",
- "tags": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z"
}
Create a following request.
organizationId required | string <uuid> (organization.OrganizationId) Organization Id. |
followingId required | string <uuid> (organization.OrganizationId) |
followMode | string (follow.FollowMode) Enum: "COOPERATIVE" "ANONYMOUS" |
followTags | Array of strings (follow.FollowTag) |
Array of objects (user.UserContact) | |
object (organization.OrganizationCreate) The template for picking properties. | |
Array of objects (scantarget.ScanTargetSuggestionCreate) |
{- "followingId": "6338e9fd-6a02-4721-9c37-b1e04d194fe9",
- "followMode": "COOPERATIVE",
- "followTags": [
- "string"
], - "userContacts": [
- {
- "email": "string",
- "name": "string",
- "phone": "string"
}
], - "organizationInformation": {
- "name": "string",
- "pictureId": "7d230a48-4a94-485b-82e1-57a6bf2e0a16",
- "email": "string"
}, - "scanTargetSuggestions": [
- {
- "account": "tenchisecurity.com",
- "kind": "DOMAIN"
}
]
}
{- "followingId": "6338e9fd-6a02-4721-9c37-b1e04d194fe9",
- "followingName": "string",
- "followerId": "62213f7a-f0bf-47a0-a6dd-74e2885412b0",
- "followerName": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
Create organization role.
organizationId required | string <uuid> (organization.OrganizationId) Organization Id. |
name required | string |
description required | string |
landingPage required | string (roles.RoleLandingPage) Enum: "ORGANIZATION_DASHBOARD" "ORGANIZATION_MEMBERS" "ORGANIZATION_SETTINGS" "FOLLOWING_DASHBOARD" "FOLLOWERS_DASHBOARD" |
organizationSettings required | string (roles.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
organizationMembers required | string (roles.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
organizationAlerts required | string (roles.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
organizationScanTargets required | string (roles.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
organizationScanTargetsTags | Array of strings |
followingAlerts required | string (roles.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
followingQuestionnaires required | string (roles.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
followingAssessments required | string (roles.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
followingOrganizations required | string (roles.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
followingOrganizationsTags | Array of strings |
followerAssessments required | string (roles.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
followerOrganizations required | string (roles.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
{- "name": "string",
- "description": "string",
- "landingPage": "ORGANIZATION_DASHBOARD",
- "organizationSettings": "FULL_ACCESS",
- "organizationMembers": "FULL_ACCESS",
- "organizationAlerts": "FULL_ACCESS",
- "organizationScanTargets": "FULL_ACCESS",
- "organizationScanTargetsTags": [
- "string"
], - "followingAlerts": "FULL_ACCESS",
- "followingQuestionnaires": "FULL_ACCESS",
- "followingAssessments": "FULL_ACCESS",
- "followingOrganizations": "FULL_ACCESS",
- "followingOrganizationsTags": [
- "string"
], - "followerAssessments": "FULL_ACCESS",
- "followerOrganizations": "FULL_ACCESS"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "description": "string",
- "landingPage": "ORGANIZATION_DASHBOARD",
- "organizationSettings": "FULL_ACCESS",
- "organizationMembers": "FULL_ACCESS",
- "organizationAlerts": "FULL_ACCESS",
- "organizationScanTargets": "FULL_ACCESS",
- "organizationScanTargetsTags": [
- "string"
], - "followingAlerts": "FULL_ACCESS",
- "followingQuestionnaires": "FULL_ACCESS",
- "followingAssessments": "FULL_ACCESS",
- "followingOrganizations": "FULL_ACCESS",
- "followingOrganizationsTags": [
- "string"
], - "followerAssessments": "FULL_ACCESS",
- "followerOrganizations": "FULL_ACCESS"
}
List all organization roles.
organizationId required | string <uuid> (organization.OrganizationId) Organization Id. |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "description": "string",
- "landingPage": "ORGANIZATION_DASHBOARD",
- "organizationSettings": "FULL_ACCESS",
- "organizationMembers": "FULL_ACCESS",
- "organizationAlerts": "FULL_ACCESS",
- "organizationScanTargets": "FULL_ACCESS",
- "organizationScanTargetsTags": [
- "string"
], - "followingAlerts": "FULL_ACCESS",
- "followingQuestionnaires": "FULL_ACCESS",
- "followingAssessments": "FULL_ACCESS",
- "followingOrganizations": "FULL_ACCESS",
- "followingOrganizationsTags": [
- "string"
], - "followerAssessments": "FULL_ACCESS",
- "followerOrganizations": "FULL_ACCESS"
}
]
Get organization role.
organizationId required | string <uuid> (organization.OrganizationId) Organization Id. |
roleId required | string <uuid> (common.Id) Id. |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "description": "string",
- "landingPage": "ORGANIZATION_DASHBOARD",
- "organizationSettings": "FULL_ACCESS",
- "organizationMembers": "FULL_ACCESS",
- "organizationAlerts": "FULL_ACCESS",
- "organizationScanTargets": "FULL_ACCESS",
- "organizationScanTargetsTags": [
- "string"
], - "followingAlerts": "FULL_ACCESS",
- "followingQuestionnaires": "FULL_ACCESS",
- "followingAssessments": "FULL_ACCESS",
- "followingOrganizations": "FULL_ACCESS",
- "followingOrganizationsTags": [
- "string"
], - "followerAssessments": "FULL_ACCESS",
- "followerOrganizations": "FULL_ACCESS"
}
Delete organization role.
organizationId required | string <uuid> (organization.OrganizationId) Organization Id. |
roleId required | string <uuid> (common.Id) Id. |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "description": "string",
- "landingPage": "ORGANIZATION_DASHBOARD",
- "organizationSettings": "FULL_ACCESS",
- "organizationMembers": "FULL_ACCESS",
- "organizationAlerts": "FULL_ACCESS",
- "organizationScanTargets": "FULL_ACCESS",
- "organizationScanTargetsTags": [
- "string"
], - "followingAlerts": "FULL_ACCESS",
- "followingQuestionnaires": "FULL_ACCESS",
- "followingAssessments": "FULL_ACCESS",
- "followingOrganizations": "FULL_ACCESS",
- "followingOrganizationsTags": [
- "string"
], - "followerAssessments": "FULL_ACCESS",
- "followerOrganizations": "FULL_ACCESS"
}
Update organization rule.
organizationId required | string <uuid> (organization.OrganizationId) Organization Id. |
roleId required | string <uuid> (common.Id) Id. |
name required | string |
description required | string |
landingPage required | string (roles.RoleLandingPage) Enum: "ORGANIZATION_DASHBOARD" "ORGANIZATION_MEMBERS" "ORGANIZATION_SETTINGS" "FOLLOWING_DASHBOARD" "FOLLOWERS_DASHBOARD" |
organizationSettings required | string (roles.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
organizationMembers required | string (roles.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
organizationAlerts required | string (roles.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
organizationScanTargets required | string (roles.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
organizationScanTargetsTags | Array of strings |
followingAlerts required | string (roles.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
followingQuestionnaires required | string (roles.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
followingAssessments required | string (roles.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
followingOrganizations required | string (roles.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
followingOrganizationsTags | Array of strings |
followerAssessments required | string (roles.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
followerOrganizations required | string (roles.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
{- "name": "string",
- "description": "string",
- "landingPage": "ORGANIZATION_DASHBOARD",
- "organizationSettings": "FULL_ACCESS",
- "organizationMembers": "FULL_ACCESS",
- "organizationAlerts": "FULL_ACCESS",
- "organizationScanTargets": "FULL_ACCESS",
- "organizationScanTargetsTags": [
- "string"
], - "followingAlerts": "FULL_ACCESS",
- "followingQuestionnaires": "FULL_ACCESS",
- "followingAssessments": "FULL_ACCESS",
- "followingOrganizations": "FULL_ACCESS",
- "followingOrganizationsTags": [
- "string"
], - "followerAssessments": "FULL_ACCESS",
- "followerOrganizations": "FULL_ACCESS"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "description": "string",
- "landingPage": "ORGANIZATION_DASHBOARD",
- "organizationSettings": "FULL_ACCESS",
- "organizationMembers": "FULL_ACCESS",
- "organizationAlerts": "FULL_ACCESS",
- "organizationScanTargets": "FULL_ACCESS",
- "organizationScanTargetsTags": [
- "string"
], - "followingAlerts": "FULL_ACCESS",
- "followingQuestionnaires": "FULL_ACCESS",
- "followingAssessments": "FULL_ACCESS",
- "followingOrganizations": "FULL_ACCESS",
- "followingOrganizationsTags": [
- "string"
], - "followerAssessments": "FULL_ACCESS",
- "followerOrganizations": "FULL_ACCESS"
}
Decline a specific scan target suggestion for a given organization. Only available for super admins.
organizationId required | string <uuid> (organization.OrganizationId) |
suggestionId required | string <uuid> (common.Id) |
{- "statusCode": 400,
- "error": "BadRequest",
- "message": "BadRequest"
}