curl
curl -X POST 'https://verification.didit.me/v3/organization/11111111-2222-3333-4444-555555555555/application/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/cases/c1a5e000-0000-4000-8000-000000000001/notes/' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"comment": "Called the customer, awaiting a reply with supporting documents.", "tags": ["follow-up"]}'import requests
url = "https://verification.didit.me/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/notes/"
payload = {
"comment": "<string>",
"mentioned_emails": ["jsmith@example.com"],
"is_internal": False,
"attachments": [
{
"s3_key": "<string>",
"filename": "<string>",
"file_size": 123
}
],
"tags": ["<string>"]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
comment: '<string>',
mentioned_emails: ['jsmith@example.com'],
is_internal: false,
attachments: [{s3_key: '<string>', filename: '<string>', file_size: 123}],
tags: ['<string>']
})
};
fetch('https://verification.didit.me/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/notes/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://verification.didit.me/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/notes/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'comment' => '<string>',
'mentioned_emails' => [
'jsmith@example.com'
],
'is_internal' => false,
'attachments' => [
[
's3_key' => '<string>',
'filename' => '<string>',
'file_size' => 123
]
],
'tags' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://verification.didit.me/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/notes/"
payload := strings.NewReader("{\n \"comment\": \"<string>\",\n \"mentioned_emails\": [\n \"jsmith@example.com\"\n ],\n \"is_internal\": false,\n \"attachments\": [\n {\n \"s3_key\": \"<string>\",\n \"filename\": \"<string>\",\n \"file_size\": 123\n }\n ],\n \"tags\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://verification.didit.me/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/notes/")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"comment\": \"<string>\",\n \"mentioned_emails\": [\n \"jsmith@example.com\"\n ],\n \"is_internal\": false,\n \"attachments\": [\n {\n \"s3_key\": \"<string>\",\n \"filename\": \"<string>\",\n \"file_size\": 123\n }\n ],\n \"tags\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://verification.didit.me/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/notes/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"comment\": \"<string>\",\n \"mentioned_emails\": [\n \"jsmith@example.com\"\n ],\n \"is_internal\": false,\n \"attachments\": [\n {\n \"s3_key\": \"<string>\",\n \"filename\": \"<string>\",\n \"file_size\": 123\n }\n ],\n \"tags\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"comment": "<string>",
"actor_email": "jsmith@example.com",
"actor_name": "<string>",
"mentioned_emails": [
"jsmith@example.com"
],
"is_internal": true,
"attachments": [
{
"s3_key": "<string>",
"filename": "<string>",
"file_size": 123,
"url": "<string>"
}
],
"tags": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z"
}Cases
Create Case Note
Post a plain-text note, optionally mentioning teammates, tagging it, or attaching files uploaded via notes/presign/.
POST
/
v3
/
organization
/
{organization_id}
/
application
/
{application_id}
/
cases
/
{case_uuid}
/
notes
/
curl
curl -X POST 'https://verification.didit.me/v3/organization/11111111-2222-3333-4444-555555555555/application/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/cases/c1a5e000-0000-4000-8000-000000000001/notes/' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"comment": "Called the customer, awaiting a reply with supporting documents.", "tags": ["follow-up"]}'import requests
url = "https://verification.didit.me/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/notes/"
payload = {
"comment": "<string>",
"mentioned_emails": ["jsmith@example.com"],
"is_internal": False,
"attachments": [
{
"s3_key": "<string>",
"filename": "<string>",
"file_size": 123
}
],
"tags": ["<string>"]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
comment: '<string>',
mentioned_emails: ['jsmith@example.com'],
is_internal: false,
attachments: [{s3_key: '<string>', filename: '<string>', file_size: 123}],
tags: ['<string>']
})
};
fetch('https://verification.didit.me/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/notes/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://verification.didit.me/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/notes/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'comment' => '<string>',
'mentioned_emails' => [
'jsmith@example.com'
],
'is_internal' => false,
'attachments' => [
[
's3_key' => '<string>',
'filename' => '<string>',
'file_size' => 123
]
],
'tags' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://verification.didit.me/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/notes/"
payload := strings.NewReader("{\n \"comment\": \"<string>\",\n \"mentioned_emails\": [\n \"jsmith@example.com\"\n ],\n \"is_internal\": false,\n \"attachments\": [\n {\n \"s3_key\": \"<string>\",\n \"filename\": \"<string>\",\n \"file_size\": 123\n }\n ],\n \"tags\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://verification.didit.me/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/notes/")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"comment\": \"<string>\",\n \"mentioned_emails\": [\n \"jsmith@example.com\"\n ],\n \"is_internal\": false,\n \"attachments\": [\n {\n \"s3_key\": \"<string>\",\n \"filename\": \"<string>\",\n \"file_size\": 123\n }\n ],\n \"tags\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://verification.didit.me/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/notes/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"comment\": \"<string>\",\n \"mentioned_emails\": [\n \"jsmith@example.com\"\n ],\n \"is_internal\": false,\n \"attachments\": [\n {\n \"s3_key\": \"<string>\",\n \"filename\": \"<string>\",\n \"file_size\": 123\n }\n ],\n \"tags\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"comment": "<string>",
"actor_email": "jsmith@example.com",
"actor_name": "<string>",
"mentioned_emails": [
"jsmith@example.com"
],
"is_internal": true,
"attachments": [
{
"s3_key": "<string>",
"filename": "<string>",
"file_size": 123,
"url": "<string>"
}
],
"tags": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z"
}
Post a plain-text note. To attach a file, first upload it with
POST .../notes/presign/ and pass the returned s3_key in attachments.
Related
Authorizations
Path Parameters
Organization UUID.
Application UUID.
Case UUID.
Example:
"c1a5e000-0000-4000-8000-000000000001"
Body
application/json
⌘I