All URIs are relative to https://api.eu.onfido.com/v3.1
Method | HTTP request | Description |
---|---|---|
CancelReport | Post /reports/{report_id}/cancel | This endpoint is for cancelling individual paused reports. |
CreateApplicant | Post /applicants | Create Applicant |
CreateCheck | Post /checks | Create a check |
CreateWebhook | Post /webhooks | Create a webhook |
DeleteWebhook | Delete /webhooks/{webhook_id} | Delete a webhook |
DestroyApplicant | Delete /applicants/{applicant_id} | Delete Applicant |
DownloadCheck | Get /checks/{check_id}/download | Download a PDF of the check |
DownloadDocument | Get /documents/{document_id}/download | Download a documents raw data |
DownloadLivePhoto | Get /live_photos/{live_photo_id}/download | Download live photo |
DownloadLiveVideo | Get /live_videos/{live_video_id}/download | Download live video |
DownloadLiveVideoFrame | Get /live_videos/{live_video_id}/frame | Download live video frame |
EditWebhook | Put /webhooks/{webhook_id} | Edit a webhook |
FindAddresses | Get /addresses/pick | Search for addresses by postcode |
FindApplicant | Get /applicants/{applicant_id} | Retrieve Applicant |
FindCheck | Get /checks/{check_id} | Retrieve a Check |
FindDocument | Get /documents/{document_id} | A single document can be retrieved by calling this endpoint with the document’s unique identifier. |
FindLivePhoto | Get /live_photos/{live_photo_id} | Retrieve live photo |
FindLiveVideo | Get /live_videos/{live_video_id} | Retrieve live video |
FindReport | Get /reports/{report_id} | A single report can be retrieved using this endpoint with the corresponding unique identifier. |
FindWebhook | Get /webhooks/{webhook_id} | Retrieve a Webhook |
GenerateSdkToken | Post /sdk_token | Generate a SDK token |
ListApplicants | Get /applicants | List Applicants |
ListChecks | Get /checks | Retrieve Checks |
ListDocuments | Get /documents | List documents |
ListLivePhotos | Get /live_photos | List live photos |
ListLiveVideos | Get /live_videos | List live videos |
ListReports | Get /reports | All the reports belonging to a particular check can be listed from this endpoint. |
ListWebhooks | Get /webhooks | List webhooks |
RestoreApplicant | Post /applicants/{applicant_id}/restore | Restore Applicant |
ResumeCheck | Post /checks/{check_id}/resume | Resume a Check |
ResumeReport | Post /reports/{report_id}/resume | This endpoint is for resuming individual paused reports. |
UpdateApplicant | Put /applicants/{applicant_id} | Update Applicant |
UploadDocument | Post /documents | Upload a document |
UploadLivePhoto | Post /live_photos | Upload live photo |
CancelReport(ctx, reportId).Execute()
This endpoint is for cancelling individual paused reports.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
reportId := "reportId_example" // string |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.CancelReport(context.Background(), reportId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.CancelReport``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
reportId | string |
Other parameters are passed through a pointer to a apiCancelReportRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Applicant CreateApplicant(ctx).Applicant(applicant).Execute()
Create Applicant
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
applicant := *openapiclient.NewApplicant() // Applicant |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.CreateApplicant(context.Background()).Applicant(applicant).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.CreateApplicant``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateApplicant`: Applicant
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.CreateApplicant`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCreateApplicantRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
applicant | Applicant |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Check CreateCheck(ctx).Check(check).Execute()
Create a check
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
check := *openapiclient.NewCheck() // Check |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.CreateCheck(context.Background()).Check(check).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.CreateCheck``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateCheck`: Check
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.CreateCheck`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCreateCheckRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
check | Check |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Webhook CreateWebhook(ctx).Webhook(webhook).Execute()
Create a webhook
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
webhook := *openapiclient.NewWebhook("Url_example") // Webhook |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.CreateWebhook(context.Background()).Webhook(webhook).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.CreateWebhook``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateWebhook`: Webhook
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.CreateWebhook`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCreateWebhookRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
webhook | Webhook |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteWebhook(ctx, webhookId).Execute()
Delete a webhook
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
webhookId := "webhookId_example" // string |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.DeleteWebhook(context.Background(), webhookId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DeleteWebhook``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
webhookId | string |
Other parameters are passed through a pointer to a apiDeleteWebhookRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DestroyApplicant(ctx, applicantId).Execute()
Delete Applicant
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
applicantId := "applicantId_example" // string |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.DestroyApplicant(context.Background(), applicantId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DestroyApplicant``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
applicantId | string |
Other parameters are passed through a pointer to a apiDestroyApplicantRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DownloadCheck(ctx, checkId).Execute()
Download a PDF of the check
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
checkId := "checkId_example" // string |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.DownloadCheck(context.Background(), checkId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DownloadCheck``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
checkId | string |
Other parameters are passed through a pointer to a apiDownloadCheckRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
*os.File DownloadDocument(ctx, documentId).Execute()
Download a documents raw data
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
documentId := "documentId_example" // string |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.DownloadDocument(context.Background(), documentId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DownloadDocument``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DownloadDocument`: *os.File
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.DownloadDocument`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
documentId | string |
Other parameters are passed through a pointer to a apiDownloadDocumentRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: /, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
*os.File DownloadLivePhoto(ctx, livePhotoId).Execute()
Download live photo
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
livePhotoId := "livePhotoId_example" // string | The live photo’s unique identifier.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.DownloadLivePhoto(context.Background(), livePhotoId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DownloadLivePhoto``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DownloadLivePhoto`: *os.File
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.DownloadLivePhoto`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
livePhotoId | string | The live photo’s unique identifier. |
Other parameters are passed through a pointer to a apiDownloadLivePhotoRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: /, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
*os.File DownloadLiveVideo(ctx, liveVideoId).Execute()
Download live video
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
liveVideoId := "liveVideoId_example" // string | The live video’s unique identifier.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.DownloadLiveVideo(context.Background(), liveVideoId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DownloadLiveVideo``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DownloadLiveVideo`: *os.File
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.DownloadLiveVideo`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
liveVideoId | string | The live video’s unique identifier. |
Other parameters are passed through a pointer to a apiDownloadLiveVideoRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: /, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
*os.File DownloadLiveVideoFrame(ctx, liveVideoId).Execute()
Download live video frame
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
liveVideoId := "liveVideoId_example" // string | The live video’s unique identifier.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.DownloadLiveVideoFrame(context.Background(), liveVideoId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DownloadLiveVideoFrame``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DownloadLiveVideoFrame`: *os.File
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.DownloadLiveVideoFrame`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
liveVideoId | string | The live video’s unique identifier. |
Other parameters are passed through a pointer to a apiDownloadLiveVideoFrameRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: /, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Webhook EditWebhook(ctx, webhookId).Webhook(webhook).Execute()
Edit a webhook
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
webhookId := "webhookId_example" // string |
webhook := *openapiclient.NewWebhook("Url_example") // Webhook |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.EditWebhook(context.Background(), webhookId).Webhook(webhook).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.EditWebhook``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EditWebhook`: Webhook
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.EditWebhook`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
webhookId | string |
Other parameters are passed through a pointer to a apiEditWebhookRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
webhook | Webhook | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AddressesList FindAddresses(ctx).Postcode(postcode).Execute()
Search for addresses by postcode
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
postcode := "postcode_example" // string |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.FindAddresses(context.Background()).Postcode(postcode).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.FindAddresses``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `FindAddresses`: AddressesList
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.FindAddresses`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiFindAddressesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
postcode | string |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Applicant FindApplicant(ctx, applicantId).Execute()
Retrieve Applicant
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
applicantId := "applicantId_example" // string |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.FindApplicant(context.Background(), applicantId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.FindApplicant``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `FindApplicant`: Applicant
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.FindApplicant`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
applicantId | string |
Other parameters are passed through a pointer to a apiFindApplicantRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Check FindCheck(ctx, checkId).Execute()
Retrieve a Check
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
checkId := "checkId_example" // string |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.FindCheck(context.Background(), checkId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.FindCheck``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `FindCheck`: Check
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.FindCheck`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
checkId | string |
Other parameters are passed through a pointer to a apiFindCheckRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Document FindDocument(ctx, documentId).Execute()
A single document can be retrieved by calling this endpoint with the document’s unique identifier.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
documentId := "documentId_example" // string |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.FindDocument(context.Background(), documentId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.FindDocument``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `FindDocument`: Document
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.FindDocument`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
documentId | string |
Other parameters are passed through a pointer to a apiFindDocumentRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LivePhoto FindLivePhoto(ctx, livePhotoId).Execute()
Retrieve live photo
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
livePhotoId := "livePhotoId_example" // string | The live photo’s unique identifier.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.FindLivePhoto(context.Background(), livePhotoId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.FindLivePhoto``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `FindLivePhoto`: LivePhoto
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.FindLivePhoto`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
livePhotoId | string | The live photo’s unique identifier. |
Other parameters are passed through a pointer to a apiFindLivePhotoRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LiveVideo FindLiveVideo(ctx, liveVideoId).Execute()
Retrieve live video
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
liveVideoId := "liveVideoId_example" // string | The live video’s unique identifier.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.FindLiveVideo(context.Background(), liveVideoId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.FindLiveVideo``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `FindLiveVideo`: LiveVideo
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.FindLiveVideo`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
liveVideoId | string | The live video’s unique identifier. |
Other parameters are passed through a pointer to a apiFindLiveVideoRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Report FindReport(ctx, reportId).Execute()
A single report can be retrieved using this endpoint with the corresponding unique identifier.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
reportId := "reportId_example" // string |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.FindReport(context.Background(), reportId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.FindReport``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `FindReport`: Report
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.FindReport`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
reportId | string |
Other parameters are passed through a pointer to a apiFindReportRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Webhook FindWebhook(ctx, webhookId).Execute()
Retrieve a Webhook
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
webhookId := "webhookId_example" // string |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.FindWebhook(context.Background(), webhookId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.FindWebhook``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `FindWebhook`: Webhook
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.FindWebhook`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
webhookId | string |
Other parameters are passed through a pointer to a apiFindWebhookRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SdkToken GenerateSdkToken(ctx).SdkToken(sdkToken).Execute()
Generate a SDK token
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
sdkToken := *openapiclient.NewSdkToken() // SdkToken |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.GenerateSdkToken(context.Background()).SdkToken(sdkToken).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GenerateSdkToken``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GenerateSdkToken`: SdkToken
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GenerateSdkToken`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiGenerateSdkTokenRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
sdkToken | SdkToken |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApplicantsList ListApplicants(ctx).Page(page).PerPage(perPage).IncludeDeleted(includeDeleted).Execute()
List Applicants
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
page := int32(56) // int32 | The page to return. The first page is `page=1` (optional) (default to 1)
perPage := int32(56) // int32 | The number of objects per page. (optional) (default to 20)
includeDeleted := true // bool | Whether to also include applicants scheduled for deletion. (optional) (default to false)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.ListApplicants(context.Background()).Page(page).PerPage(perPage).IncludeDeleted(includeDeleted).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ListApplicants``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListApplicants`: ApplicantsList
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ListApplicants`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListApplicantsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
page | int32 | The page to return. The first page is `page=1` | [default to 1] |
perPage | int32 | The number of objects per page. | [default to 20] |
includeDeleted | bool | Whether to also include applicants scheduled for deletion. | [default to false] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ChecksList ListChecks(ctx).ApplicantId(applicantId).Execute()
Retrieve Checks
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
applicantId := "applicantId_example" // string |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.ListChecks(context.Background()).ApplicantId(applicantId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ListChecks``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListChecks`: ChecksList
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ListChecks`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListChecksRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
applicantId | string |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DocumentsList ListDocuments(ctx).ApplicantId(applicantId).Execute()
List documents
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
applicantId := "applicantId_example" // string |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.ListDocuments(context.Background()).ApplicantId(applicantId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ListDocuments``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListDocuments`: DocumentsList
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ListDocuments`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListDocumentsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
applicantId | string |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LivePhotosList ListLivePhotos(ctx).ApplicantId(applicantId).Execute()
List live photos
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
applicantId := "applicantId_example" // string | The id of the applicant the live photos belong to.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.ListLivePhotos(context.Background()).ApplicantId(applicantId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ListLivePhotos``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListLivePhotos`: LivePhotosList
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ListLivePhotos`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListLivePhotosRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
applicantId | string | The id of the applicant the live photos belong to. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LiveVideosList ListLiveVideos(ctx).ApplicantId(applicantId).Execute()
List live videos
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
applicantId := "applicantId_example" // string | The id of the applicant the live videos belong to.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.ListLiveVideos(context.Background()).ApplicantId(applicantId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ListLiveVideos``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListLiveVideos`: LiveVideosList
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ListLiveVideos`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListLiveVideosRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
applicantId | string | The id of the applicant the live videos belong to. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ReportsList ListReports(ctx).CheckId(checkId).Execute()
All the reports belonging to a particular check can be listed from this endpoint.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
checkId := "checkId_example" // string |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.ListReports(context.Background()).CheckId(checkId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ListReports``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListReports`: ReportsList
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ListReports`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListReportsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
checkId | string |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WebhooksList ListWebhooks(ctx).Execute()
List webhooks
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.ListWebhooks(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ListWebhooks``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListWebhooks`: WebhooksList
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ListWebhooks`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiListWebhooksRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RestoreApplicant(ctx, applicantId).Execute()
Restore Applicant
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
applicantId := "applicantId_example" // string |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.RestoreApplicant(context.Background(), applicantId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.RestoreApplicant``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
applicantId | string |
Other parameters are passed through a pointer to a apiRestoreApplicantRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResumeCheck(ctx, checkId).Execute()
Resume a Check
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
checkId := "checkId_example" // string |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.ResumeCheck(context.Background(), checkId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ResumeCheck``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
checkId | string |
Other parameters are passed through a pointer to a apiResumeCheckRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResumeReport(ctx, reportId).Execute()
This endpoint is for resuming individual paused reports.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
reportId := "reportId_example" // string |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.ResumeReport(context.Background(), reportId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ResumeReport``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
reportId | string |
Other parameters are passed through a pointer to a apiResumeReportRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Applicant UpdateApplicant(ctx, applicantId).Applicant(applicant).Execute()
Update Applicant
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
applicantId := "applicantId_example" // string |
applicant := *openapiclient.NewApplicant() // Applicant |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.UpdateApplicant(context.Background(), applicantId).Applicant(applicant).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.UpdateApplicant``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateApplicant`: Applicant
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.UpdateApplicant`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
applicantId | string |
Other parameters are passed through a pointer to a apiUpdateApplicantRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
applicant | Applicant | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Document UploadDocument(ctx).ApplicantId(applicantId).Type_(type_).File(file).Side(side).IssuingCountry(issuingCountry).Execute()
Upload a document
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
applicantId := "applicantId_example" // string | The ID of the applicant whose document is being uploaded.
type_ := "type__example" // string | The type of document.
file := os.NewFile(1234, "some_file") // *os.File | The file to be uploaded.
side := "side_example" // string | Either the `front` or `back` of the document. (optional)
issuingCountry := "issuingCountry_example" // string | The issuing country of the document, a 3-letter ISO code. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.UploadDocument(context.Background()).ApplicantId(applicantId).Type_(type_).File(file).Side(side).IssuingCountry(issuingCountry).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.UploadDocument``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UploadDocument`: Document
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.UploadDocument`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiUploadDocumentRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
applicantId | string | The ID of the applicant whose document is being uploaded. | |
type_ | string | The type of document. | |
file | *os.File | The file to be uploaded. | |
side | string | Either the `front` or `back` of the document. | |
issuingCountry | string | The issuing country of the document, a 3-letter ISO code. |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LivePhoto UploadLivePhoto(ctx).ApplicantId(applicantId).File(file).AdvancedValidation(advancedValidation).Execute()
Upload live photo
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
applicantId := "applicantId_example" // string |
file := os.NewFile(1234, "some_file") // *os.File | The file to be uploaded.
advancedValidation := true // bool | Validates that the live photo contains exactly one face. (optional) (default to true)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.UploadLivePhoto(context.Background()).ApplicantId(applicantId).File(file).AdvancedValidation(advancedValidation).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.UploadLivePhoto``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UploadLivePhoto`: LivePhoto
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.UploadLivePhoto`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiUploadLivePhotoRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
applicantId | string | ||
file | *os.File | The file to be uploaded. | |
advancedValidation | bool | Validates that the live photo contains exactly one face. | [default to true] |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]