All URIs are relative to https://api.eu.onfido.com/v3.6
Method | HTTP request | Description |
---|---|---|
CancelReport | Post /reports/{report_id}/cancel | This endpoint is for cancelling individual paused reports. |
CompleteTask | Post /workflow_runs/{workflow_run_id}/tasks/{task_id}/complete | Completes a Send / Receive Data task. |
CreateApplicant | Post /applicants | Create Applicant |
CreateCheck | Post /checks | Create a check |
CreateWebhook | Post /webhooks | Create a webhook |
CreateWorkflowRun | Post /workflow_runs | Create a Workflow Run. |
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. |
ListTasks | Get /workflow_runs/{workflow_run_id}/tasks | The tasks of a Workflow can be retrieved by calling this endpoint with the unique identifier of the Workflow Run. |
ListWebhooks | Get /webhooks | List webhooks |
ListWorkflowRuns | Get /workflow_runs | List Workflow Runs. |
Ping | Get /ping | Run a health check on the Onfido API |
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. |
RetrieveTask | Get /workflow_runs/{workflow_run_id}/tasks/{task_id} | A single task can be retrieved by calling this endpoint with the unique identifier of the Task and Workflow Run. |
RetrieveWorkflowRun | Get /workflow_runs/{workflow_run_id} | A single workflow run can be retrieved by calling this endpoint with the unique identifier of the Workflow Run. |
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 "github.com/wallester/go-onfido-openapi"
)
func main() {
reportId := "reportId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.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]
CompleteTask(ctx, workflowRunId, taskId).CompleteTaskRequest(completeTaskRequest).Execute()
Completes a Send / Receive Data task.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/wallester/go-onfido-openapi"
)
func main() {
workflowRunId := "workflowRunId_example" // string | The unique identifier of the Workflow Run to which the Task belongs.
taskId := "taskId_example" // string | The identifier of the Task you want to complete.
completeTaskRequest := *openapiclient.NewCompleteTaskRequest() // CompleteTaskRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.DefaultAPI.CompleteTask(context.Background(), workflowRunId, taskId).CompleteTaskRequest(completeTaskRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CompleteTask``: %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. | |
workflowRunId | string | The unique identifier of the Workflow Run to which the Task belongs. | |
taskId | string | The identifier of the Task you want to complete. |
Other parameters are passed through a pointer to a apiCompleteTaskRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
completeTaskRequest | CompleteTaskRequest | |
(empty response body)
- Content-Type: application/json
- 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 "github.com/wallester/go-onfido-openapi"
)
func main() {
applicant := *openapiclient.NewApplicant() // Applicant |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.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 "github.com/wallester/go-onfido-openapi"
)
func main() {
check := *openapiclient.NewCheck() // Check |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.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 "github.com/wallester/go-onfido-openapi"
)
func main() {
webhook := *openapiclient.NewWebhook("Url_example") // Webhook |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.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]
WorkflowRun CreateWorkflowRun(ctx).CreateWorkflowRunRequest(createWorkflowRunRequest).Execute()
Create a Workflow Run.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/wallester/go-onfido-openapi"
)
func main() {
createWorkflowRunRequest := *openapiclient.NewCreateWorkflowRunRequest("WorkflowId_example", "ApplicantId_example") // CreateWorkflowRunRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultAPI.CreateWorkflowRun(context.Background()).CreateWorkflowRunRequest(createWorkflowRunRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CreateWorkflowRun``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateWorkflowRun`: WorkflowRun
fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateWorkflowRun`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCreateWorkflowRunRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
createWorkflowRunRequest | CreateWorkflowRunRequest |
- 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 "github.com/wallester/go-onfido-openapi"
)
func main() {
webhookId := "webhookId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.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 "github.com/wallester/go-onfido-openapi"
)
func main() {
applicantId := "applicantId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.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 "github.com/wallester/go-onfido-openapi"
)
func main() {
checkId := "checkId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.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 "github.com/wallester/go-onfido-openapi"
)
func main() {
documentId := "documentId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.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 "github.com/wallester/go-onfido-openapi"
)
func main() {
livePhotoId := "livePhotoId_example" // string | The live photo’s unique identifier.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.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 "github.com/wallester/go-onfido-openapi"
)
func main() {
liveVideoId := "liveVideoId_example" // string | The live video’s unique identifier.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.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 "github.com/wallester/go-onfido-openapi"
)
func main() {
liveVideoId := "liveVideoId_example" // string | The live video’s unique identifier.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.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 "github.com/wallester/go-onfido-openapi"
)
func main() {
webhookId := "webhookId_example" // string |
webhook := *openapiclient.NewWebhook("Url_example") // Webhook |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.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 "github.com/wallester/go-onfido-openapi"
)
func main() {
postcode := "postcode_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.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 "github.com/wallester/go-onfido-openapi"
)
func main() {
applicantId := "applicantId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.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 "github.com/wallester/go-onfido-openapi"
)
func main() {
checkId := "checkId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.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 "github.com/wallester/go-onfido-openapi"
)
func main() {
documentId := "documentId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.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 "github.com/wallester/go-onfido-openapi"
)
func main() {
livePhotoId := "livePhotoId_example" // string | The live photo’s unique identifier.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.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 "github.com/wallester/go-onfido-openapi"
)
func main() {
liveVideoId := "liveVideoId_example" // string | The live video’s unique identifier.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.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 "github.com/wallester/go-onfido-openapi"
)
func main() {
reportId := "reportId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.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 "github.com/wallester/go-onfido-openapi"
)
func main() {
webhookId := "webhookId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.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 "github.com/wallester/go-onfido-openapi"
)
func main() {
sdkToken := *openapiclient.NewSdkToken() // SdkToken |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.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 "github.com/wallester/go-onfido-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()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.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 "github.com/wallester/go-onfido-openapi"
)
func main() {
applicantId := "applicantId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.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 "github.com/wallester/go-onfido-openapi"
)
func main() {
applicantId := "applicantId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.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 "github.com/wallester/go-onfido-openapi"
)
func main() {
applicantId := "applicantId_example" // string | The id of the applicant the live photos belong to.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.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 "github.com/wallester/go-onfido-openapi"
)
func main() {
applicantId := "applicantId_example" // string | The id of the applicant the live videos belong to.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.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 "github.com/wallester/go-onfido-openapi"
)
func main() {
checkId := "checkId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.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]
ListTasks200Response ListTasks(ctx, workflowRunId).Execute()
The tasks of a Workflow can be retrieved by calling this endpoint with the unique identifier of the Workflow Run.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/wallester/go-onfido-openapi"
)
func main() {
workflowRunId := "workflowRunId_example" // string | The unique identifier of the Workflow Run to which the Tasks belong.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultAPI.ListTasks(context.Background(), workflowRunId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ListTasks``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListTasks`: ListTasks200Response
fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ListTasks`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
workflowRunId | string | The unique identifier of the Workflow Run to which the Tasks belong. |
Other parameters are passed through a pointer to a apiListTasksRequest 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]
WebhooksList ListWebhooks(ctx).Execute()
List webhooks
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/wallester/go-onfido-openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.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]
[]WorkflowRun ListWorkflowRuns(ctx).Page(page).Status(status).CreatedAtGt(createdAtGt).CreatedAtLt(createdAtLt).Sort(sort).Execute()
List Workflow Runs.
package main
import (
"context"
"fmt"
"os"
"time"
openapiclient "github.com/wallester/go-onfido-openapi"
)
func main() {
page := int32(56) // int32 | The number of the page to be retrieved. If not specified, defaults to 1. (optional) (default to 1)
status := "status_example" // string | A list of comma separated status values to filter the results. Possible values are 'processing', 'awaiting_input', 'approved', 'declined', 'review', 'abandoned' and 'error'. (optional)
createdAtGt := time.Now() // time.Time | A ISO-8601 date to filter results with a created date greater than (after) the one provided. (optional)
createdAtLt := time.Now() // time.Time | A ISO-8601 date to filter results with a created date less than (before) the one provided. (optional)
sort := "sort_example" // string | A string with the value 'desc' or 'asc' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to 'desc'. (optional) (default to "desc")
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultAPI.ListWorkflowRuns(context.Background()).Page(page).Status(status).CreatedAtGt(createdAtGt).CreatedAtLt(createdAtLt).Sort(sort).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ListWorkflowRuns``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListWorkflowRuns`: []WorkflowRun
fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ListWorkflowRuns`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListWorkflowRunsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
page | int32 | The number of the page to be retrieved. If not specified, defaults to 1. | [default to 1] |
status | string | A list of comma separated status values to filter the results. Possible values are 'processing', 'awaiting_input', 'approved', 'declined', 'review', 'abandoned' and 'error'. | |
createdAtGt | time.Time | A ISO-8601 date to filter results with a created date greater than (after) the one provided. | |
createdAtLt | time.Time | A ISO-8601 date to filter results with a created date less than (before) the one provided. | |
sort | string | A string with the value 'desc' or 'asc' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to 'desc'. | [default to "desc"] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string Ping(ctx).Execute()
Run a health check on the Onfido API
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/wallester/go-onfido-openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultAPI.Ping(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.Ping``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Ping`: string
fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.Ping`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiPingRequest struct via the builder pattern
string
- Content-Type: Not defined
- Accept: text/plain, 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 "github.com/wallester/go-onfido-openapi"
)
func main() {
applicantId := "applicantId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.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 "github.com/wallester/go-onfido-openapi"
)
func main() {
checkId := "checkId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.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 "github.com/wallester/go-onfido-openapi"
)
func main() {
reportId := "reportId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.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]
Task RetrieveTask(ctx, workflowRunId, taskId).Execute()
A single task can be retrieved by calling this endpoint with the unique identifier of the Task and Workflow Run.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/wallester/go-onfido-openapi"
)
func main() {
workflowRunId := "workflowRunId_example" // string | The unique identifier of the Workflow Run to which the Task belongs.
taskId := "taskId_example" // string | The identifier of the Task you want to retrieve.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultAPI.RetrieveTask(context.Background(), workflowRunId, taskId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.RetrieveTask``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RetrieveTask`: Task
fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.RetrieveTask`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
workflowRunId | string | The unique identifier of the Workflow Run to which the Task belongs. | |
taskId | string | The identifier of the Task you want to retrieve. |
Other parameters are passed through a pointer to a apiRetrieveTaskRequest 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]
WorkflowRun RetrieveWorkflowRun(ctx, workflowRunId).Execute()
A single workflow run can be retrieved by calling this endpoint with the unique identifier of the Workflow Run.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/wallester/go-onfido-openapi"
)
func main() {
workflowRunId := "workflowRunId_example" // string | The unique identifier of the Workflow Run.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultAPI.RetrieveWorkflowRun(context.Background(), workflowRunId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.RetrieveWorkflowRun``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RetrieveWorkflowRun`: WorkflowRun
fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.RetrieveWorkflowRun`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
workflowRunId | string | The unique identifier of the Workflow Run. |
Other parameters are passed through a pointer to a apiRetrieveWorkflowRunRequest 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]
Applicant UpdateApplicant(ctx, applicantId).Applicant(applicant).Execute()
Update Applicant
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/wallester/go-onfido-openapi"
)
func main() {
applicantId := "applicantId_example" // string |
applicant := *openapiclient.NewApplicant() // Applicant |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.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).ValidateImageQuality(validateImageQuality).Location(location).Execute()
Upload a document
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/wallester/go-onfido-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)
validateImageQuality := true // bool | Defaults to false. When true the submitted image will undergo an image quality validation which may take up to 5 seconds. (optional)
location := *openapiclient.NewLocation() // Location | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultAPI.UploadDocument(context.Background()).ApplicantId(applicantId).Type_(type_).File(file).Side(side).IssuingCountry(issuingCountry).ValidateImageQuality(validateImageQuality).Location(location).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. | |
validateImageQuality | bool | Defaults to false. When true the submitted image will undergo an image quality validation which may take up to 5 seconds. | |
location | Location |
- 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 "github.com/wallester/go-onfido-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()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.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]