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
Endpoint: /generate-token
Method: POST
Example Token Response
{
"msg": "Token generated successfully",
"data": {
"token": "Auth Token"
// ...
}
}
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",
}
});
Endpoint: /process-leads
Method: POST
Example Response
{
"msg": "File processing started",
"data": {
"token": "auth token",
"file_upload_identifier": "file upload identifier"
// ...
}
}
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"
}
});
Endpoint: /file-status
Method: POST
Example Response
{
"msg": "File Processed Successfully",
"data": {
"processed_file_url": "Process file URL",
"status": "PROCESSING"
// ...
}
}
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"
}
});