(audits() )
Returns a paginated list of audits scoped to the audit firm.
package hello .world ;
import com .vanta .vanta_auditor_api .Vanta ;
import com .vanta .vanta_auditor_api .models .operations .ListAuditsResponse ;
import java .lang .Exception ;
import java .time .OffsetDateTime ;
public class Application {
public static void main (String [] args ) throws Exception {
Vanta sdk = Vanta .builder ()
.bearerAuth ("<YOUR_BEARER_TOKEN_HERE>" )
.build ();
ListAuditsResponse res = sdk .audits ().list ()
.pageSize (10 )
.pageCursor ("<value>" )
.changedSinceDate (OffsetDateTime .parse ("2025-04-22T08:39:55.981Z" ))
.call ();
if (res .paginatedResponseAudit ().isPresent ()) {
// handle response
}
}
}
Parameter
Type
Required
Description
pageSize
Optional<Integer>
➖
N/A
pageCursor
Optional<String>
➖
N/A
changedSinceDate
OffsetDateTime
➖
Includes all audits that have changed since changedSinceDate.
ListAuditsResponse
Error Type
Status Code
Content Type
models/errors/APIException
4XX, 5XX
*/*
Returns a paginated list of evidence urls for an audit.
package hello .world ;
import com .vanta .vanta_auditor_api .Vanta ;
import com .vanta .vanta_auditor_api .models .operations .ListAuditEvidenceUrlsResponse ;
import java .lang .Exception ;
public class Application {
public static void main (String [] args ) throws Exception {
Vanta sdk = Vanta .builder ()
.bearerAuth ("<YOUR_BEARER_TOKEN_HERE>" )
.build ();
ListAuditEvidenceUrlsResponse res = sdk .audits ().listEvidenceUrls ()
.auditId ("<id>" )
.auditEvidenceId ("<id>" )
.pageSize (10 )
.pageCursor ("<value>" )
.call ();
if (res .paginatedResponseEvidenceUrl ().isPresent ()) {
// handle response
}
}
}
Parameter
Type
Required
Description
auditId
String
✔️
N/A
auditEvidenceId
String
✔️
N/A
pageSize
Optional<Integer>
➖
N/A
pageCursor
Optional<String>
➖
N/A
ListAuditEvidenceUrlsResponse
Error Type
Status Code
Content Type
models/errors/APIException
4XX, 5XX
*/*
Returns a paginated list of evidence for an audit.
package hello .world ;
import com .vanta .vanta_auditor_api .Vanta ;
import com .vanta .vanta_auditor_api .models .operations .ListAuditEvidenceResponse ;
import java .lang .Exception ;
import java .time .OffsetDateTime ;
public class Application {
public static void main (String [] args ) throws Exception {
Vanta sdk = Vanta .builder ()
.bearerAuth ("<YOUR_BEARER_TOKEN_HERE>" )
.build ();
ListAuditEvidenceResponse res = sdk .audits ().listEvidence ()
.auditId ("<id>" )
.pageSize (10 )
.pageCursor ("<value>" )
.changedSinceDate (OffsetDateTime .parse ("2024-04-16T02:08:40.568Z" ))
.call ();
if (res .paginatedResponseEvidence ().isPresent ()) {
// handle response
}
}
}
Parameter
Type
Required
Description
auditId
String
✔️
N/A
pageSize
Optional<Integer>
➖
N/A
pageCursor
Optional<String>
➖
N/A
changedSinceDate
OffsetDateTime
➖
Includes all audit evidence that have changed since changedSinceDate.
ListAuditEvidenceResponse
Error Type
Status Code
Content Type
models/errors/APIException
4XX, 5XX
*/*
listComments
Returns a paginated list of comments for an audit.
package hello .world ;
import com .vanta .vanta_auditor_api .Vanta ;
import com .vanta .vanta_auditor_api .models .operations .ListAuditCommentsResponse ;
import java .lang .Exception ;
import java .time .OffsetDateTime ;
public class Application {
public static void main (String [] args ) throws Exception {
Vanta sdk = Vanta .builder ()
.bearerAuth ("<YOUR_BEARER_TOKEN_HERE>" )
.build ();
ListAuditCommentsResponse res = sdk .audits ().listComments ()
.auditId ("<id>" )
.pageSize (10 )
.pageCursor ("<value>" )
.changedSinceDate (OffsetDateTime .parse ("2023-04-04T02:10:35.499Z" ))
.call ();
if (res .paginatedResponseComment ().isPresent ()) {
// handle response
}
}
}
Parameter
Type
Required
Description
auditId
String
✔️
N/A
pageSize
Optional<Integer>
➖
N/A
pageCursor
Optional<String>
➖
N/A
changedSinceDate
OffsetDateTime
➖
Includes all comments that have changed since changedSinceDate.
ListAuditCommentsResponse
Error Type
Status Code
Content Type
models/errors/APIException
4XX, 5XX
*/*
Returns a paginated list of controls for an audit.
package hello .world ;
import com .vanta .vanta_auditor_api .Vanta ;
import com .vanta .vanta_auditor_api .models .operations .ListAuditControlsResponse ;
import java .lang .Exception ;
public class Application {
public static void main (String [] args ) throws Exception {
Vanta sdk = Vanta .builder ()
.bearerAuth ("<YOUR_BEARER_TOKEN_HERE>" )
.build ();
ListAuditControlsResponse res = sdk .audits ().listControls ()
.auditId ("<id>" )
.pageSize (10 )
.pageCursor ("<value>" )
.call ();
if (res .paginatedResponseAuditorControl ().isPresent ()) {
// handle response
}
}
}
Parameter
Type
Required
Description
auditId
String
✔️
N/A
pageSize
Optional<Integer>
➖
N/A
pageCursor
Optional<String>
➖
N/A
ListAuditControlsResponse
Error Type
Status Code
Content Type
models/errors/APIException
4XX, 5XX
*/*
createCommentForEvidence
Create a comment in Vanta for a piece of evidence.
package hello .world ;
import com .vanta .vanta_auditor_api .Vanta ;
import com .vanta .vanta_auditor_api .models .components .AddCommentInput ;
import com .vanta .vanta_auditor_api .models .operations .CreateCommentForAuditEvidenceResponse ;
import java .lang .Exception ;
import java .time .OffsetDateTime ;
public class Application {
public static void main (String [] args ) throws Exception {
Vanta sdk = Vanta .builder ()
.bearerAuth ("<YOUR_BEARER_TOKEN_HERE>" )
.build ();
CreateCommentForAuditEvidenceResponse res = sdk .audits ().createCommentForEvidence ()
.auditId ("<id>" )
.auditEvidenceId ("<id>" )
.addCommentInput (AddCommentInput .builder ()
.text ("<value>" )
.email ("Earnestine28@yahoo.com" )
.creationDate (OffsetDateTime .parse ("2024-11-28T04:59:12.710Z" ))
.build ())
.call ();
if (res .comment ().isPresent ()) {
// handle response
}
}
}
Parameter
Type
Required
Description
auditId
String
✔️
N/A
auditEvidenceId
String
✔️
N/A
addCommentInput
AddCommentInput
✔️
N/A
CreateCommentForAuditEvidenceResponse
Error Type
Status Code
Content Type
models/errors/APIException
4XX, 5XX
*/*
Update audit evidence.
package hello .world ;
import com .vanta .vanta_auditor_api .Vanta ;
import com .vanta .vanta_auditor_api .models .components .AuditEvidenceUpdateInput ;
import com .vanta .vanta_auditor_api .models .operations .UpdateAuditEvidenceResponse ;
import java .lang .Exception ;
public class Application {
public static void main (String [] args ) throws Exception {
Vanta sdk = Vanta .builder ()
.bearerAuth ("<YOUR_BEARER_TOKEN_HERE>" )
.build ();
UpdateAuditEvidenceResponse res = sdk .audits ().updateEvidence ()
.auditId ("<id>" )
.auditEvidenceId ("<id>" )
.auditEvidenceUpdateInput (AuditEvidenceUpdateInput .builder ()
.build ())
.call ();
if (res .evidence ().isPresent ()) {
// handle response
}
}
}
Parameter
Type
Required
Description
auditId
String
✔️
N/A
auditEvidenceId
String
✔️
N/A
auditEvidenceUpdateInput
AuditEvidenceUpdateInput
✔️
N/A
UpdateAuditEvidenceResponse
Error Type
Status Code
Content Type
models/errors/APIException
4XX, 5XX
*/*
createCustomEvidenceRequest
Create a custom evidence request for an audit.
package hello .world ;
import com .vanta .vanta_auditor_api .Vanta ;
import com .vanta .vanta_auditor_api .models .components .CreateCustomEvidenceRequestInput ;
import com .vanta .vanta_auditor_api .models .components .RecurrenceDuration ;
import com .vanta .vanta_auditor_api .models .operations .CreateCustomEvidenceRequestResponse ;
import java .lang .Exception ;
import java .util .List ;
public class Application {
public static void main (String [] args ) throws Exception {
Vanta sdk = Vanta .builder ()
.bearerAuth ("<YOUR_BEARER_TOKEN_HERE>" )
.build ();
CreateCustomEvidenceRequestResponse res = sdk .audits ().createCustomEvidenceRequest ()
.auditId ("<id>" )
.createCustomEvidenceRequestInput (CreateCustomEvidenceRequestInput .builder ()
.controlIds (List .of (
"<value>" ))
.title ("<value>" )
.description ("now whoa while" )
.cadence (RecurrenceDuration .P3_M )
.reminderWindow (RecurrenceDuration .P0_D )
.isRestricted (true )
.build ())
.call ();
if (res .customEvidenceRequest ().isPresent ()) {
// handle response
}
}
}
CreateCustomEvidenceRequestResponse
Error Type
Status Code
Content Type
models/errors/APIException
4XX, 5XX
*/*
Create a custom control for an audit.
package hello .world ;
import com .vanta .vanta_auditor_api .Vanta ;
import com .vanta .vanta_auditor_api .models .components .ControlDomain ;
import com .vanta .vanta_auditor_api .models .components .CreateCustomControlInput ;
import com .vanta .vanta_auditor_api .models .operations .CreateCustomControlResponse ;
import java .lang .Exception ;
import java .time .OffsetDateTime ;
public class Application {
public static void main (String [] args ) throws Exception {
Vanta sdk = Vanta .builder ()
.bearerAuth ("<YOUR_BEARER_TOKEN_HERE>" )
.build ();
CreateCustomControlResponse res = sdk .audits ().createCustomControl ()
.auditId ("<id>" )
.createCustomControlInput (CreateCustomControlInput .builder ()
.externalId ("<id>" )
.name ("<value>" )
.description ("even keenly afore mmm yearningly ouch tough yearly intent" )
.effectiveDate (OffsetDateTime .parse ("2024-07-08T11:52:30.590Z" ))
.category (ControlDomain .THREAT_MANAGEMENT )
.build ())
.call ();
if (res .control ().isPresent ()) {
// handle response
}
}
}
CreateCustomControlResponse
Error Type
Status Code
Content Type
models/errors/APIException
4XX, 5XX
*/*