Skip to content

Latest commit

 

History

History
2313 lines (1495 loc) · 58.5 KB

DefaultApi.md

File metadata and controls

2313 lines (1495 loc) · 58.5 KB

\DefaultApi

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

CancelReport(ctx, reportId).Execute()

This endpoint is for cancelling individual paused reports.

Example

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)
    }
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
reportId string

Other Parameters

Other parameters are passed through a pointer to a apiCancelReportRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

Authorization

Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CreateApplicant

Applicant CreateApplicant(ctx).Applicant(applicant).Execute()

Create Applicant

Example

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)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiCreateApplicantRequest struct via the builder pattern

Name Type Description Notes
applicant Applicant

Return type

Applicant

Authorization

Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CreateCheck

Check CreateCheck(ctx).Check(check).Execute()

Create a check

Example

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)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiCreateCheckRequest struct via the builder pattern

Name Type Description Notes
check Check

Return type

Check

Authorization

Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CreateWebhook

Webhook CreateWebhook(ctx).Webhook(webhook).Execute()

Create a webhook

Example

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)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiCreateWebhookRequest struct via the builder pattern

Name Type Description Notes
webhook Webhook

Return type

Webhook

Authorization

Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteWebhook

DeleteWebhook(ctx, webhookId).Execute()

Delete a webhook

Example

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)
    }
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
webhookId string

Other Parameters

Other parameters are passed through a pointer to a apiDeleteWebhookRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

Authorization

Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DestroyApplicant

DestroyApplicant(ctx, applicantId).Execute()

Delete Applicant

Example

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)
    }
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
applicantId string

Other Parameters

Other parameters are passed through a pointer to a apiDestroyApplicantRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

Authorization

Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DownloadCheck

DownloadCheck(ctx, checkId).Execute()

Download a PDF of the check

Example

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)
    }
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
checkId string

Other Parameters

Other parameters are passed through a pointer to a apiDownloadCheckRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

Authorization

Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DownloadDocument

*os.File DownloadDocument(ctx, documentId).Execute()

Download a documents raw data

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
documentId string

Other Parameters

Other parameters are passed through a pointer to a apiDownloadDocumentRequest struct via the builder pattern

Name Type Description Notes

Return type

*os.File

Authorization

Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: /, application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DownloadLivePhoto

*os.File DownloadLivePhoto(ctx, livePhotoId).Execute()

Download live photo

Example

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)
}

Path Parameters

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

Other parameters are passed through a pointer to a apiDownloadLivePhotoRequest struct via the builder pattern

Name Type Description Notes

Return type

*os.File

Authorization

Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: /, application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DownloadLiveVideo

*os.File DownloadLiveVideo(ctx, liveVideoId).Execute()

Download live video

Example

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)
}

Path Parameters

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

Other parameters are passed through a pointer to a apiDownloadLiveVideoRequest struct via the builder pattern

Name Type Description Notes

Return type

*os.File

Authorization

Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: /, application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DownloadLiveVideoFrame

*os.File DownloadLiveVideoFrame(ctx, liveVideoId).Execute()

Download live video frame

Example

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)
}

Path Parameters

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

Other parameters are passed through a pointer to a apiDownloadLiveVideoFrameRequest struct via the builder pattern

Name Type Description Notes

Return type

*os.File

Authorization

Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: /, application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

EditWebhook

Webhook EditWebhook(ctx, webhookId).Webhook(webhook).Execute()

Edit a webhook

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
webhookId string

Other Parameters

Other parameters are passed through a pointer to a apiEditWebhookRequest struct via the builder pattern

Name Type Description Notes

webhook | Webhook | |

Return type

Webhook

Authorization

Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FindAddresses

AddressesList FindAddresses(ctx).Postcode(postcode).Execute()

Search for addresses by postcode

Example

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)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiFindAddressesRequest struct via the builder pattern

Name Type Description Notes
postcode string

Return type

AddressesList

Authorization

Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FindApplicant

Applicant FindApplicant(ctx, applicantId).Execute()

Retrieve Applicant

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
applicantId string

Other Parameters

Other parameters are passed through a pointer to a apiFindApplicantRequest struct via the builder pattern

Name Type Description Notes

Return type

Applicant

Authorization

Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FindCheck

Check FindCheck(ctx, checkId).Execute()

Retrieve a Check

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
checkId string

Other Parameters

Other parameters are passed through a pointer to a apiFindCheckRequest struct via the builder pattern

Name Type Description Notes

Return type

Check

Authorization

Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FindDocument

Document FindDocument(ctx, documentId).Execute()

A single document can be retrieved by calling this endpoint with the document’s unique identifier.

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
documentId string

Other Parameters

Other parameters are passed through a pointer to a apiFindDocumentRequest struct via the builder pattern

Name Type Description Notes

Return type

Document

Authorization

Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FindLivePhoto

LivePhoto FindLivePhoto(ctx, livePhotoId).Execute()

Retrieve live photo

Example

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)
}

Path Parameters

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

Other parameters are passed through a pointer to a apiFindLivePhotoRequest struct via the builder pattern

Name Type Description Notes

Return type

LivePhoto

Authorization

Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FindLiveVideo

LiveVideo FindLiveVideo(ctx, liveVideoId).Execute()

Retrieve live video

Example

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)
}

Path Parameters

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

Other parameters are passed through a pointer to a apiFindLiveVideoRequest struct via the builder pattern

Name Type Description Notes

Return type

LiveVideo

Authorization

Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FindReport

Report FindReport(ctx, reportId).Execute()

A single report can be retrieved using this endpoint with the corresponding unique identifier.

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
reportId string

Other Parameters

Other parameters are passed through a pointer to a apiFindReportRequest struct via the builder pattern

Name Type Description Notes

Return type

Report

Authorization

Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FindWebhook

Webhook FindWebhook(ctx, webhookId).Execute()

Retrieve a Webhook

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
webhookId string

Other Parameters

Other parameters are passed through a pointer to a apiFindWebhookRequest struct via the builder pattern

Name Type Description Notes

Return type

Webhook

Authorization

Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GenerateSdkToken

SdkToken GenerateSdkToken(ctx).SdkToken(sdkToken).Execute()

Generate a SDK token

Example

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)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiGenerateSdkTokenRequest struct via the builder pattern

Name Type Description Notes
sdkToken SdkToken

Return type

SdkToken

Authorization

Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListApplicants

ApplicantsList ListApplicants(ctx).Page(page).PerPage(perPage).IncludeDeleted(includeDeleted).Execute()

List Applicants

Example

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)
}

Path Parameters

Other Parameters

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]

Return type

ApplicantsList

Authorization

Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListChecks

ChecksList ListChecks(ctx).ApplicantId(applicantId).Execute()

Retrieve Checks

Example

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)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiListChecksRequest struct via the builder pattern

Name Type Description Notes
applicantId string

Return type

ChecksList

Authorization

Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListDocuments

DocumentsList ListDocuments(ctx).ApplicantId(applicantId).Execute()

List documents

Example

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)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiListDocumentsRequest struct via the builder pattern

Name Type Description Notes
applicantId string

Return type

DocumentsList

Authorization

Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListLivePhotos

LivePhotosList ListLivePhotos(ctx).ApplicantId(applicantId).Execute()

List live photos

Example

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)
}

Path Parameters

Other Parameters

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.

Return type

LivePhotosList

Authorization

Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListLiveVideos

LiveVideosList ListLiveVideos(ctx).ApplicantId(applicantId).Execute()

List live videos

Example

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)
}

Path Parameters

Other Parameters

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.

Return type

LiveVideosList

Authorization

Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListReports

ReportsList ListReports(ctx).CheckId(checkId).Execute()

All the reports belonging to a particular check can be listed from this endpoint.

Example

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)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiListReportsRequest struct via the builder pattern

Name Type Description Notes
checkId string

Return type

ReportsList

Authorization

Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListWebhooks

WebhooksList ListWebhooks(ctx).Execute()

List webhooks

Example

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)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiListWebhooksRequest struct via the builder pattern

Return type

WebhooksList

Authorization

Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

RestoreApplicant

RestoreApplicant(ctx, applicantId).Execute()

Restore Applicant

Example

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)
    }
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
applicantId string

Other Parameters

Other parameters are passed through a pointer to a apiRestoreApplicantRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

Authorization

Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ResumeCheck

ResumeCheck(ctx, checkId).Execute()

Resume a Check

Example

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)
    }
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
checkId string

Other Parameters

Other parameters are passed through a pointer to a apiResumeCheckRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

Authorization

Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ResumeReport

ResumeReport(ctx, reportId).Execute()

This endpoint is for resuming individual paused reports.

Example

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)
    }
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
reportId string

Other Parameters

Other parameters are passed through a pointer to a apiResumeReportRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

Authorization

Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UpdateApplicant

Applicant UpdateApplicant(ctx, applicantId).Applicant(applicant).Execute()

Update Applicant

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
applicantId string

Other Parameters

Other parameters are passed through a pointer to a apiUpdateApplicantRequest struct via the builder pattern

Name Type Description Notes

applicant | Applicant | |

Return type

Applicant

Authorization

Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UploadDocument

Document UploadDocument(ctx).ApplicantId(applicantId).Type_(type_).File(file).Side(side).IssuingCountry(issuingCountry).Execute()

Upload a document

Example

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)
}

Path Parameters

Other Parameters

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.

Return type

Document

Authorization

Token

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UploadLivePhoto

LivePhoto UploadLivePhoto(ctx).ApplicantId(applicantId).File(file).AdvancedValidation(advancedValidation).Execute()

Upload live photo

Example

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)
}

Path Parameters

Other Parameters

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]

Return type

LivePhoto

Authorization

Token

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]