Skip to main content
POST
/
scoring
/
submitDocument
Submit Document
curl --request POST \
  --url https://api.emberqa.com/api/scoring/submitDocument \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "agent_name": "John D",
  "media_url": "https://example.com/document.pdf",
  "metadata": {
    "key1": "value1",
    "key2": "value2"
  }
}'
{
  "message": "File Accepted"
}

Document Requirements

Before submitting documents, ensure they meet these requirements:
  • Supported formats: PDF
  • Maximum file size: 20MB

Authorizations

Authorization
string
header
required

API key obtained from the EmberQA dashboard under the "Integrations" tab

Body

application/json
media_url
string<uri>
required

Publicly accessible URL to the PDF file (max 20MB)

Example:

"https://example.com/document.pdf"

agent_name
string

Name of the agent who handled the interaction

Example:

"John D"

metadata
object

Key-value pairs for additional document metadata

Example:
{
"customer_id": "12345",
"interaction_type": "support",
"department": "technical"
}

Response

File Accepted

message
string
Example:

"File Accepted"