smart-extract-documentation
v4.1.1
v4.1.1
  • SmartExtract
  • API Reference
    • Data Extraction API
      • Authentication
      • SmartExtract JSON API
    • Admin API
      • API Key Management
      • Extraction Logs API
  • smart-extract.js
    • Integration Overview
    • SmartExtract API
    • SmartExtractSimple API
    • Styling and Customisations
    • Pre-Fillling Extraction Form
    • Performing Multiple Extraction
    • Code Examples
      • SmartExtract API Examples
      • SmartExtractSimple API Examples
  • Appendix
Powered by GitBook
On this page
  • token
  • token
  1. API Reference
  2. Data Extraction API

Authentication

PreviousData Extraction APINextSmartExtract JSON API

Last updated 1 year ago

The SmartExtract API uses API Keys to provide a session token. You can view and manage your API Keys through your . Make sure to note down the secret key when you create a new API key. If you fail to copy or lose your secret key, there is no way to retrieve it back. The only option would be to create a new API key. The session-auth-token returned as part of the response needs to be used as part of the iframe url while loading the SmartExtract component

For Production environment:

token

POST https://api.clik.ai/smart-extract-api/api/account/v1/auth/token

Create an authentication token to be used to load the SmartExtract iframe.

Headers

Name
Type
Description

Content-Type

string

application/json

Request Body

Name
Type
Description

key

string

Your API key

secret

string

Your secret key

{
  "data": {
    "token": "<session-auth-token>"
  }
}
// Invalid credentials response
{
  "status": "error",
  "error": "Invalid credentials provided"
}

// Disabled key response
{
  "status": "error",
  "error": "This API key is disabled"
}

For Staging Environment:

token

POST https://api.clik.ai/smart-extract-stg-api/api/account/v1/auth/token

Create an authentication token to be used to load the SmartExtract iframe.

Headers

Name
Type
Description

Content-Type

string

application/json

Request Body

Name
Type
Description

key

string

Your API key

secret

string

Your secret key

{
  "data": {
    "token": "<session-auth-token>"
  }
}
// Invalid credentials response
{
  "status": "error",
  "error": "Invalid credentials provided"
}

// Disabled key response
{
  "status": "error",
  "error": "This API key is disabled"
}
dashboard