Authenticate User

Authenticate User

Endpoint: /user-authenticate
Method: POST

Example Request

    
const response = await fetch("https://app.reworked.ai/bnd/api/user-authenticate", {
  method: "POST",
  body: {
    "password": "password",
    "email": "email"
  }
});
    
  
  • Email and password of user

Example Response

    
{
  "msg": "User Authenticated Successfully",
  "data": {
    "api_secret_key": "api-secret-key of user"
    // ...
  }
}
    
  
  • in case of error status code will be 403

Generate Token

Generate Token

Endpoint: /generate-token
Method: POST

Example Token Response

    
{
  "msg": "Token generated successfully",
  "data": {
    "token": "Auth Token"
    // ...
  }
}
    
  
  • api_key will be provided by Reworked.

  • Email is the id from which you created a Reworked account.

  • api_key will be provided by Reworked.

  • Email is the id from which you created

    a Reworked account.

Example Request

    
const response = await fetch("https://app.reworked.ai/bnd/api/generate-token", {
  method: "POST",
  body: {
    "api_key": "api-key",
    "email": "abc@gmail.com",
  }
});
    
  
  • api_key will be provided by Reworked.

  • Email is the id from which you created a Reworked account.

  • api_key will be provided by Reworked.

  • Email is the id from which you created

    a Reworked account.

Process Leads

Process Leads

Endpoint: /process-leads
Method: POST

Example Response

    
{
  "msg": "File processing started",
  "data": {
    "token": "auth token",
    "file_upload_identifier": "file upload identifier"
    // ...
  }
}
    
  
  • file_url - here is url of the file to process

  • callback_url - send url to be called once fill processing is completed.

  • file_url - here is url of the file to process

  • callback_url - send url to be called once fill processing is completed.

Example Request

    
const response = await fetch("https://app.reworked.ai/bnd/api/process-leads", {
  method: "POST",
  body: {
    "file_url": "file upload file url",
    "email": "email",
    "callback_url": "callback_url"
  }
});
    
  
  • Token to be used in file status api.

  • The token will be valid for 24 hours.

  • Token to be used in file status api.

  • The token will be valid for 24 hours.

File Status

File Status

Endpoint: /file-status
Method: POST

Example Response

    
{
  "msg": "File Processed Successfully",
  "data": {
    "processed_file_url": "Process file URL",
    "status": "PROCESSING"
    // ...
  }
}
    
  
  • file upload identifier from process leads response.

  • Reworked Email Id

  • file upload identifier from process leads

    response.

  • Reworked Email Id

Example Request

    
const response = await fetch("https://app.reworked.ai/bnd/api/file-status", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
  },
  body: {
    "file_url": "file upload file url",
    "email": "email"
  }
});
    
  
  • Status can be STARTED/PROCESSED/FAILED/PROCESSING

  • Status can be STARTED/PROCESSED/FAILED/PROCESSING