from didit import Didit
# Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
# and DIDIT_APPLICATION_ID.
client = Didit()
result = client.cases.notes.create(
"11111111-2222-3333-4444-555555555555",
comment="Proof of address matches the ID document.",
)
print(result)import Didit from "@didit-protocol/sdk-node";
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
const didit = new Didit();
const result = await didit.cases.notes.create("11111111-2222-3333-4444-555555555555", {
comment: "Proof of address matches the ID document.",
});
console.log(result);ctx := context.Background()
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
client := didit.NewClient()
result, err := client.Cases.Notes.Create(ctx, "11111111-2222-3333-4444-555555555555", didit.CaseCollaborationCaseNoteCreateRequest{
Comment: "Proof of address matches the ID document.",
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", result)import me.didit.Didit;
import me.didit.types.CaseCollaborationCaseNoteCreateRequest;
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
Didit client = new Didit();
var result = client.cases().notes().create("11111111-2222-3333-4444-555555555555", CaseCollaborationCaseNoteCreateRequest.builder()
.comment("Proof of address matches the ID document.")
.build());
System.out.println(result);<?php
require 'vendor/autoload.php';
use Didit\DiditClient;
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
$didit = new DiditClient();
$result = $didit->cases->notes->create('11111111-2222-3333-4444-555555555555', [
'comment' => 'Proof of address matches the ID document.',
]);
print_r($result->toArray());require "didit"
# Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
# and DIDIT_APPLICATION_ID.
didit = Didit::Client.new
result = didit.cases.notes.create(
"11111111-2222-3333-4444-555555555555",
comment: "Proof of address matches the ID document."
)
puts result.to_husing System;
using System.Text.Json;
using Didit;
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
using var client = new DiditClient();
var result = await client.Cases.Notes.CreateAsync("11111111-2222-3333-4444-555555555555", new CaseCollaborationCaseNoteCreateRequest
{
Comment = "Proof of address matches the ID document.",
});
Console.WriteLine(JsonSerializer.Serialize(result));curl --request POST \
--url https://verification.didit.me/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/notes/ \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'x-api-key: <api-key>' \
--data 'comment=<string>' \
--data reply_to=3c90c3cc-0d44-4b50-8888-8dd25736052a \
--data client_reference=3c90c3cc-0d44-4b50-8888-8dd25736052a \
--data mentioned_emails=jsmith@example.com \
--data is_internal=false \
--data 'attachments={}' \
--data 'tags=<string>'{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"comment": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"reply_to": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"actor_name": "<string>",
"actor_email": "jsmith@example.com",
"comment": "<string>"
},
"actor_email": "jsmith@example.com",
"actor_name": "<string>",
"mentioned_emails": "<unknown>",
"is_internal": true,
"attachments": "<unknown>",
"tags": "<unknown>",
"is_pinned": true,
"client_reference": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"comment": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"reply_to": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"actor_name": "<string>",
"actor_email": "jsmith@example.com",
"comment": "<string>"
},
"actor_email": "jsmith@example.com",
"actor_name": "<string>",
"mentioned_emails": "<unknown>",
"is_internal": true,
"attachments": "<unknown>",
"tags": "<unknown>",
"is_pinned": true,
"client_reference": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"detail": "<string>"
}Create Case Note API
Post a plain-text note to a case, with optional mentions, tags, and file attachments.
from didit import Didit
# Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
# and DIDIT_APPLICATION_ID.
client = Didit()
result = client.cases.notes.create(
"11111111-2222-3333-4444-555555555555",
comment="Proof of address matches the ID document.",
)
print(result)import Didit from "@didit-protocol/sdk-node";
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
const didit = new Didit();
const result = await didit.cases.notes.create("11111111-2222-3333-4444-555555555555", {
comment: "Proof of address matches the ID document.",
});
console.log(result);ctx := context.Background()
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
client := didit.NewClient()
result, err := client.Cases.Notes.Create(ctx, "11111111-2222-3333-4444-555555555555", didit.CaseCollaborationCaseNoteCreateRequest{
Comment: "Proof of address matches the ID document.",
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", result)import me.didit.Didit;
import me.didit.types.CaseCollaborationCaseNoteCreateRequest;
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
Didit client = new Didit();
var result = client.cases().notes().create("11111111-2222-3333-4444-555555555555", CaseCollaborationCaseNoteCreateRequest.builder()
.comment("Proof of address matches the ID document.")
.build());
System.out.println(result);<?php
require 'vendor/autoload.php';
use Didit\DiditClient;
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
$didit = new DiditClient();
$result = $didit->cases->notes->create('11111111-2222-3333-4444-555555555555', [
'comment' => 'Proof of address matches the ID document.',
]);
print_r($result->toArray());require "didit"
# Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
# and DIDIT_APPLICATION_ID.
didit = Didit::Client.new
result = didit.cases.notes.create(
"11111111-2222-3333-4444-555555555555",
comment: "Proof of address matches the ID document."
)
puts result.to_husing System;
using System.Text.Json;
using Didit;
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
using var client = new DiditClient();
var result = await client.Cases.Notes.CreateAsync("11111111-2222-3333-4444-555555555555", new CaseCollaborationCaseNoteCreateRequest
{
Comment = "Proof of address matches the ID document.",
});
Console.WriteLine(JsonSerializer.Serialize(result));curl --request POST \
--url https://verification.didit.me/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/notes/ \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'x-api-key: <api-key>' \
--data 'comment=<string>' \
--data reply_to=3c90c3cc-0d44-4b50-8888-8dd25736052a \
--data client_reference=3c90c3cc-0d44-4b50-8888-8dd25736052a \
--data mentioned_emails=jsmith@example.com \
--data is_internal=false \
--data 'attachments={}' \
--data 'tags=<string>'{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"comment": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"reply_to": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"actor_name": "<string>",
"actor_email": "jsmith@example.com",
"comment": "<string>"
},
"actor_email": "jsmith@example.com",
"actor_name": "<string>",
"mentioned_emails": "<unknown>",
"is_internal": true,
"attachments": "<unknown>",
"tags": "<unknown>",
"is_pinned": true,
"client_reference": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"comment": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"reply_to": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"actor_name": "<string>",
"actor_email": "jsmith@example.com",
"comment": "<string>"
},
"actor_email": "jsmith@example.com",
"actor_name": "<string>",
"mentioned_emails": "<unknown>",
"is_internal": true,
"attachments": "<unknown>",
"tags": "<unknown>",
"is_pinned": true,
"client_reference": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"detail": "<string>"
}POST .../notes/presign/ and pass the returned s3_key in attachments.
Related
Authorizations
Your application's API key, from Developers -> API keys in the Business Console. The primary key has full access. A named key can be scoped: none, read or write per resource, limited to some workflows or to approved sessions, to a list of IP addresses, and to an expiry date. 401 means the key is wrong, revoked or expired; 403 means no key was sent, the key has no access to this resource or action, or the request came from an address outside its IP list; 404 on a session route means the session is outside the key's workflows or statuses. A key without media access receives image, video and PDF URLs as null, and a key without sessions write receives session links and tokens as null. See https://docs.didit.me/console/api-keys.
Headers
Optional retry-safety key you choose for one operation, up to 255 characters (a UUID works). A request repeated with the same key, endpoint, query and body is answered with the first response, same status and same body, and runs and bills nothing a second time. The same key with another endpoint, query or body returns 409 idempotency_key_reused, and while the first request is still running, 409 idempotency_key_in_progress with Retry-After. A failed request (any 4xx or 5xx) is not stored, so you can send it again with the same key. Keys belong to your application, whether you call with an API key or an access token. See Retries and idempotency.
1 - 255