Skip to main content

Get started with Quantum API

Start integrating with the Quantum AI Agent and upload your first documents in just a few steps.

Step 1: Get your API credentials

To access the Quantum API, you’ll need a valid Bearer token. Contact your system administrator or access your Quantum dashboard to obtain your authentication token.
Keep your Bearer token secure and never share it publicly.

Step 2: Upload your first document

Choose a document you want to upload to the Quantum AI Agent. Supported formats include:
  • PDF files
  • Images (JPEG, PNG)
  • Text files
  • Office documents (Word, Excel)
Make sure your document is ready and accessible on your system.
Use the Documents API to upload your first document:
curl -X POST "https://www.cognivo.app/api/v1/documents/create" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "owner_id": 1,
    "company_id": 2,
    "agent_id": 5,
    "documents": [
      {
        "name": "my-document.pdf",
        "mimetype": "application/pdf",
        "base64": "JVBERi0xLjQK..."
      }
    ]
  }'
Check the Documents API for complete examples!

Step 3: Verify the upload

After making the API call, you should receive a response like:
{
  "status": "success",
  "message": "1 documents created successfully",
  "created_documents": [
    {
      "id": 123,
      "name": "my-document.pdf",
      "attachment_id": 456,
      "agent_id": 5
    }
  ]
}

Next steps

Now that you’ve uploaded your first document, explore these capabilities:
Need help? See our full documentation or join our community.
I