Skip to content

DoveRunner Distributor Watermarking API Guide

This document guides how to use DoveRunner Distributor Watermarking Service through HTTP API.

The specifications below are common to all Distributor Watermarking APIs described in this document.

When calling the Distributor Watermarking API, you need to set an authentication token issued by the process below.

Step 1: Generate the base64 encoded Authorization parameter

  1. Navigate to Base64 Enc/Dec page on DoveRunner DevConsole.
  2. While Encrypt option is selected, enter the AccountID:AccessKey value in the left text field.
  3. Base64 encoded output will be displayed as the screenshot below.
  4. Copy the output value to use in the next step.

You need to input the AccountID and AccessKey values for your DoveRunner service account.

Step 2: Use the parameter value to generate the Authorization token.

Call the token API URL with base64 encoded value in the Authorization request header.

ParameterTypeDescription
siteIdfour alphanumeric charactersYour DoveRunner Site ID shown on Console
NameDescription
AuthorizationBasic Auth : Basic base64encode(accountId:accessKey)

Sample Request

GET /api/token/UNIT HTTP/1.1
Authorization: basic authInfo
Host: dwm.pallycon.com
FieldTypeInfo
error_codeStringerror code
error_messageStringerror message
data.tokenStringAPI Auth token

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 112
{
"error_code" : "0000",
"error_message" : "Success.",
"data" : {
"token" : "Bearer valid-token"
}
}

You can call the Distributor Watermarking API by setting the data issued through the token api in the authorization header.

Response Status

HTTP Status CodeDescription
Error codeDescription
401Incorrect JWT Token specification or user information not found
403You do not have permission to use the API.
200Success

Response Data Fields

KeytypeValue
error_codeString0000: Success / Other values indicate failure
error_messageStringError message
dataJsonApi result
CodeDescription
DM000READY
DM001PREPROCESSING
DM500COMPLETED
DM600ERROR
CodeDescription
TK000READY
TK001PROGRESSING
TK002COMPLETE
TK005FAIL

Use this API to search the Job List.

ParameterDescription
siteIdYour DoveRunner Site ID shown on Console
ParameterTypeDescription
content_idStringEnter the unique ID (Content ID) to be watermarked. (Special characters cannot be used, maximum 200 bytes)
job_statusArraySearch job status by list.
fromStringSearch parameter for job registration time. (yyyy-MM-dd)
toStringSearch parameter for job registration time. (yyyy-MM-dd)
page_unitNumberNumber of max result per page. default : 25, max: 1000.
page_indexNumberIndex of result page. default : 1
time_zoneStringSearch timezone. (+/-hh:mm) default: +00:00

Sample Request

GET /api/job/UNIT?content_id=test&job_status=DM500&job_status=DM600&from=2023-11-07&to=2023-11-09&page_unit=10&page_index=1&time_zone=%2B00%3A00 HTTP/1.1
Authorization: Bearer valid_token
Content-Type: application/json;charset=UTF-8
Host: dwm.pallycon.com
FieldTypeDescription
error_codeStringError code
error_messageStringError message
time_zoneStringTimezone
total_countNumberTotal Count
dataArrayJob list
data.[].job_idNumberJob ID
data.[].content_idStringJob name
data.[].job_statusStringJob status code
data.[].reg_timeStringStart time for the job
data.[].update_timeStringLast update time for the job

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 292
{
"error_code" : "0000",
"error_message" : "Success.",
"time_zone" : "+00:00",
"total_count" : 1,
"data" : [ {
"job_id" : 1111,
"content_id" : "content_id",
"job_status" : "DM000",
"reg_time" : "2022-10-27T15:33:47",
"update_time" : "2022-10-27T15:34:05"
} ]
}

Use this API to Get the Job details.

ParameterDescription
siteIdYour DoveRunner Site ID shown on Console
jobIdJob ID
ParameterTypeDescription
time_zoneStringSearch timezone. (+/-hh:mm) default: +00:00

Sample Request

GET /api/job/UNIT/727?time_zone=%2B00%3A00 HTTP/1.1
Authorization: Bearer valid_token
Content-Type: application/json;charset=UTF-8
Host: dwm.pallycon.com
FieldTypeDescription
error_codeStringError code
error_messageStringError message
time_zoneStringTimezone
dataObjectJob Detail
data.job_idNumberJob ID
data.content_idStringJob name
data.job_statusStringJob status code
data.reg_timeStringStart time for the job
data.update_timeStringLast update time for the job

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 266
{
"error_code" : "0000",
"error_message" : "Success.",
"time_zone" : "+00:00",
"data" : {
"job_id" : 727,
"content_id" : "content_id",
"job_status" : "DM500",
"reg_time" : "2022-09-13T18:46:28",
"update_time" : "2022-09-13T18:56:02"
}
}

Use this API to get all related Recipients of a job.

ParameterDescription
siteIdYour DoveRunner Site ID shown on Console
jobIdJob ID
ParameterTypeDescription
time_zoneStringSearch timezone. (+/-hh:mm) default: +00:00

Sample Request

GET /api/job/UNIT/727/recipient?time_zone=%2B00%3A00 HTTP/1.1
Authorization: Bearer valid_token
Content-Type: application/json;charset=UTF-8
Host: dwm.pallycon.com
FieldTypeDescription
error_codeStringError code
error_messageStringError message
time_zoneStringTimezone
total_countNumbertotal count
dataArrayRecipient List
data.[].dwm_idNumberRecipient id
data.[].recipientStringRecipient Name
data.[].descriptionStringRecipient Description
data.[].task_statusStringPreEmbedder Task Status
data.[].cli_error_codeStringPreEmbedder Error Code (“0” : Success, else are fail.)
data.[].reg_timeStringStart time for the job
data.[].update_timeStringLast update time for the job

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 285
{
"error_code" : "0000",
"error_message" : "Success.",
"time_zone" : "+00:00",
"total_count" : 1,
"data" : [ {
"dwm_id" : 74,
"recipient" : "test1",
"description" : "description",
"task_status" : "TK001",
"cli_error_code" : "0",
"reg_time" : "2022-04-05T14:35:39",
"update_time" : "2022-04-05T17:35:39"
} ]
}

The recipient name must be unique and can only contain English letters (uppercase and lowercase), decimal numbers, hyphens (-), underscores (_), and periods (.). No other special characters such as @, #, $, % etc supported. However, the system treats recipient names in a case-insensitive manner. This means that if you register Test, you cannot register variations like TEST or test as separate recipient names. Similarly, when using a DWM ID, regardless of the case used in the request (e.g., test), the system will utilize the DWM ID associated with the originally registered recipient name (e.g., Test).

Use this API to search recipients.

ParameterDescription
siteIdYour DoveRunner Site ID shown on Console
ParameterTypeDescription
search_keywordArraySearch recipient’s name
fromStringSearch parameter for job registration time. (yyyy-MM-dd)
toStringSearch parameter for job registration time. (yyyy-MM-dd)
page_unitNumberNumber of max result per page. default : 25, max: 1000.
page_indexNumberIndex of result page. default : 1
time_zoneStringSearch timezone. (+/-hh:mm) default: +00:00

Sample Request

GET /api/recipient/UNIT?search_keyword=test&from=2023-11-07&to=2023-11-09&page_unit=10&page_index=1&time_zone=%2B00%3A00 HTTP/1.1
Authorization: Bearer valid_token
Content-Type: application/json;charset=UTF-8
Host: dwm.pallycon.com
FieldTypeDescription
error_codeStringError code
error_messageStringError message
time_zoneStringTimezone
total_countNumberTotal Count
dataArrayRecipient List
data.[].dwm_idNumberRecipient id
data.[].nameStringRecipient Name
data.[].descriptionStringRecipient Description
data.[].reg_timeStringStart time for the recipient

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 235
{
"error_code" : "0000",
"error_message" : "Success.",
"time_zone" : "+00:00",
"total_count" : 1,
"data" : [ {
"dwm_id" : 9,
"name" : "distributor_1",
"description" : "8337",
"reg_time" : "2023-01-12T13:30:30"
} ]
}

Use this API to Get Recipient Info in Detail.

ParameterDescription
siteIdYour DoveRunner Site ID shown on Console
dwmIdRecipient’s DWM ID
ParameterTypeDescription
time_zoneStringSearch timezone. (+/-hh:mm) default: +00:00

Sample Request

GET /api/recipient/UNIT/1011?time_zone=%2B00%3A00 HTTP/1.1
Authorization: Bearer valid_token
Content-Type: application/json;charset=UTF-8
Host: dwm.pallycon.com
FieldTypeDescription
error_codeStringError code
error_messageStringError message
time_zoneStringTimezone
dataArrayRecipient List
data.dwm_idNumberRecipient id
data.nameStringRecipient Name
data.descriptionStringRecipient Description
data.reg_timeStringStart time for the recipient
data.update_timeStringLast update time for the recipient

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 235
{
"error_code" : "0000",
"error_message" : "Success.",
"time_zone" : "+00:00",
"data" : {
"dwm_id" : 1011,
"name" : "distributor_1",
"description" : "8337",
"reg_time" : "2023-01-12T13:30:30",
"update_time" : "2023-07-22T03:39:11"
}
}

Use this API to register recipient. You can add maximum 150 recipients/users at a time. But if you try to add more than that, registration will fail.

ParameterDescription
siteIdYour DoveRunner Site ID shown on Console
FieldTypeRequiredDescription
recipientsArrayYList of Recipient
recipients.[].nameStringYName (maximum 128 length) Allow only Alphabet, Number, (-_.)
recipients.[].descriptionStringDescription (maximum 50 length)

Sample Request

POST /api/recipient/UNIT HTTP/1.1
Authorization: Bearer valid_token
Content-Type: application/json;charset=UTF-8
Content-Length: 86
Host: dwm.pallycon.com
{
"recipients" : [ {
"name" : "test",
"description" : "test corp."
} ]
}
FieldTypeDescription
error_codeStringError code
error_messageStringError message
time_zoneStringTimezone
dataArrayRecipient List
data.[].dwm_idNumberRecipient id
data.[].nameStringRecipient Name
data.[].descriptionStringRecipient Description
data.[].reg_timeStringStart time for the job

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 220
{
"error_code" : "0000",
"error_message" : "Success.",
"time_zone" : "+00:00",
"data" : [ {
"dwm_id" : 10,
"name" : "test",
"description" : "test corp.",
"reg_time" : "2023-01-12T13:30:30"
} ]
}

Use this API to modify recipient. Only available when the recipient is not used on DWM pre-embedding process.

ParameterDescription
siteIdYour DoveRunner Site ID shown on Console
dwmIdRecipient’s DWM ID

At least name or description field will be submitted.

FieldTypeRequiredDescription
nameStringName (maximum 128 length)
descriptionStringDescription (maximum 50 length)

Sample Request

PUT /api/recipient/UNIT/1011 HTTP/1.1
Authorization: Bearer valid_token
Content-Type: application/json;charset=UTF-8
Content-Length: 86
Host: dwm.pallycon.com
{
"name" : "change_name",
"description" : "change_name corp."
}
FieldTypeDescription
error_codeStringError code
error_messageStringError message
time_zoneStringTimezone
dataObjectRecipient List
data.dwm_idNumberRecipient id
data.update_timeStringLast update time for the job

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 220
{
"error_code" : "0000",
"error_message" : "Success.",
"time_zone" : "+00:00",
"data" : {
"dwm_id" : 1011,
"update_time" : "2023-07-22T03:39:11"
}
}