editorr API Documentation

Welcome to editorr’s API! You can use this API to access all our API endpoints.

Getting Started

How to connect to API:

Generate an API KEY under your account settings.
Login to your account and go to https://www.editorr.com/profile#api-key

Authentication

Authentication is done via your API KEY.

Contact

Suggestions, contact, support and error reporting on editorr support.

ConnectUser

ConnectUser - Authenticate User to Portal

/ConnectUser
curl -i https://editorr.com/api/editorr-job-api.php/ConnectUser

Parameter

Field Type Description
apikey String

This will be a unique api key for each user.

Success 200

Field Type Description
userDetail Array

This array contains all the information of a user.

Error 4xx

Field Description
MissingApiKey

Api Key is missing.

InvalidApiKey

Api Key is invalid.

{"userDetail":{"paypal":"","user_id":"235","user_level":"a:1:{i:0;s:1:\"3\";}","restricted":"0","account_active":"1","username":"brian@socialtect.com","name":"dumy user","first_name":"dummy","email":"dummy@mail.com","password":"123@bc2f@#","free_words":"-207","level_points":"105500","notifications":"0","timestamp":"2016-07-08 14:17:51","referralCode":"sdfsd","api_key":"34csdf4","mobilePhone":"","phone_verified":"1","verification_code":null,"notifySms":"a:4:{s:3:\"new\";s:1:\"0\";s:6:\"picked\";s:1:\"0\";s:5:\"fixed\";s:1:\"0\";s:4:\"chat\";s:1:\"0\";}","notifyEmail":"a:6:{s:3:\"new\";s:1:\"1\";s:6:\"picked\";s:1:\"1\";s:5:\"fixed\";s:1:\"1\";s:4:\"chat\";s:1:\"1\";s:5:\"clean\";s:1:\"1\";s:6:\"markup\";s:1:\"1\";}","referrer_id":null,"referrer_initial_credit":null,"fb_token":null,"creditcard_id":null,"business_id":"2","editor_monthly":null,"editor_lastpayment":null,"free_trial":"1","only_free_jobs_email":"0","not_verified_email":"0","inactivate_on":null,"ontraport_id":"","admin_notes":null,"getdrip_updated":"0","modified_on":null}}
Contact Demo

MyJobs

MyJobs - Get all User Jobs.

The purpose of this function is to get all jobs unique to a particular user.

/MyJobs/:apikey
curl -i https://editorr.com/api/editorr-job-api.php/MyJobs/apikey

Parameter

Field Type Description
apikey String

TThis is a unique key for each user.

Success 200

Field Type Description
jobs Array

This is the array of all user jobs.

Error 4xx

Field Description
MissingApiKey

Api Key is missing.

InvalidApiKey

Api Key is invalid.

{"jobs":"[{"id":"1","name":"Jxhshhshs","originalText":"Sample Text","originalNotes":"","originalTextLength":"4","fixedText":"","fixedTextNoMarkup":"","fixedTextComments":null,"price":"0.08","editor_price":"1.00","idOfRequestor":"5","idOfLastAssignedEditor":"7","editor_chosen":"0","status":"11","ref_id":"78eKju","job_category":"1","ratingOriginal":"0","ratingFixedQuality":"0","ratingFixedTimeliness":"0","promisedTime":"10","rating_FleschReadingEase":"97.00","rating_ColemanLiau":"38.60","rating_FleschGradeLevel":"0.00","rating_AutomatedReadability":"24.10","smart_queue":"0.00","readability_before":"0","readability_after":"0","readability_change":"0","category":"","tags":"","created_at":"2016-07-26 05:31:12","submitted_at":"2016-07-26 05:31:12","updated_at":"2016-09-28 12:38:54","taken_at":"2016-07-28 09:38:20","fixed_at":"2016-07-29 01:41:48","redone_at":null,"pay_status":"4","editor_paid":"0","editor_notes":"asass","user_rating":null},{"id":"1","name":"Jxhshhshs","originalText":"Sample Text2","originalNotes":"","originalTextLength":"4","fixedText":"","fixedTextNoMarkup":"","fixedTextComments":null,"price":"0.08","editor_price":"1.00","idOfRequestor":"5","idOfLastAssignedEditor":"7","editor_chosen":"0","status":"11","ref_id":"78eKju","job_category":"1","ratingOriginal":"0","ratingFixedQuality":"0","ratingFixedTimeliness":"0","promisedTime":"10","rating_FleschReadingEase":"97.00","rating_ColemanLiau":"38.60","rating_FleschGradeLevel":"0.00","rating_AutomatedReadability":"24.10","smart_queue":"0.00","readability_before":"0","readability_after":"0","readability_change":"0","category":"","tags":"","created_at":"2016-07-26 05:31:12","submitted_at":"2016-07-26 05:31:12","updated_at":"2016-09-28 12:38:54","taken_at":"2016-07-28 09:38:20","fixed_at":"2016-07-29 01:41:48","redone_at":null,"pay_status":"4","editor_paid":"0","editor_notes":"asass","user_rating":null}...]"}
MyJobs Demo

FixedJobs

FixedJobs - Get all Fixed Jobs of a User.

The purpose of this function is to get all fixed jobs of a user.

/FixedJobs/:apikey
curl -i https://editorr.com/api/editorr-job-api.php/FixedJobs/apikey

Parameter

Field Type Description
apikey String

This is a unique key for each user.

Success 200

Field Type Description
jobs Array

This is the array of all fixed jobs.

Error 4xx

Field Description
MissingApiKey

Api Key is missing.

InvalidApiKey

Api Key is invalid.

{"jobs":"[{"id":"1","name":"Jxhshhshs","originalText":"Sample Text","originalNotes":"","originalTextLength":"4","fixedText":"","fixedTextNoMarkup":"","fixedTextComments":null,"price":"0.08","editor_price":"1.00","idOfRequestor":"5","idOfLastAssignedEditor":"7","editor_chosen":"0","status":"11","ref_id":"78eKju","job_category":"1","ratingOriginal":"0","ratingFixedQuality":"0","ratingFixedTimeliness":"0","promisedTime":"10","rating_FleschReadingEase":"97.00","rating_ColemanLiau":"38.60","rating_FleschGradeLevel":"0.00","rating_AutomatedReadability":"24.10","smart_queue":"0.00","readability_before":"0","readability_after":"0","readability_change":"0","category":"","tags":"","created_at":"2016-07-26 05:31:12","submitted_at":"2016-07-26 05:31:12","updated_at":"2016-09-28 12:38:54","taken_at":"2016-07-28 09:38:20","fixed_at":"2016-07-29 01:41:48","redone_at":null,"pay_status":"4","editor_paid":"0","editor_notes":"asass","user_rating":null},{"id":"1","name":"Jxhshhshs","originalText":"Sample Text2","originalNotes":"","originalTextLength":"4","fixedText":"","fixedTextNoMarkup":"","fixedTextComments":null,"price":"0.08","editor_price":"1.00","idOfRequestor":"5","idOfLastAssignedEditor":"7","editor_chosen":"0","status":"11","ref_id":"78eKju","job_category":"1","ratingOriginal":"0","ratingFixedQuality":"0","ratingFixedTimeliness":"0","promisedTime":"10","rating_FleschReadingEase":"97.00","rating_ColemanLiau":"38.60","rating_FleschGradeLevel":"0.00","rating_AutomatedReadability":"24.10","smart_queue":"0.00","readability_before":"0","readability_after":"0","readability_change":"0","category":"","tags":"","created_at":"2016-07-26 05:31:12","submitted_at":"2016-07-26 05:31:12","updated_at":"2016-09-28 12:38:54","taken_at":"2016-07-28 09:38:20","fixed_at":"2016-07-29 01:41:48","redone_at":null,"pay_status":"4","editor_paid":"0","editor_notes":"asass","user_rating":null}...]"}
FixedJobs Demo

ClosedJobs

ClosedJobs - Get all Closed Jobs of a User.

The purpose of this function is to get all closed jobs of a user.

/ClosedJobs/:apikey
curl -i https://editorr.com/api/editorr-job-api.php/ClosedJobs/apikey

Parameter

Field Type Description
apikey String

This is a unique key for each user.

Success 200

Field Type Description
jobs Array

This is the array of all closed jobs

Error 4xx

Field Description
MissingApiKey

Api Key is missing.

InvalidApiKey

Api Key is invalid.

{"jobs":"[{"id":"1","name":"Jxhshhshs","originalText":"Sample Text","originalNotes":"","originalTextLength":"4","fixedText":"","fixedTextNoMarkup":"","fixedTextComments":null,"price":"0.08","editor_price":"1.00","idOfRequestor":"5","idOfLastAssignedEditor":"7","editor_chosen":"0","status":"11","ref_id":"78eKju","job_category":"1","ratingOriginal":"0","ratingFixedQuality":"0","ratingFixedTimeliness":"0","promisedTime":"10","rating_FleschReadingEase":"97.00","rating_ColemanLiau":"38.60","rating_FleschGradeLevel":"0.00","rating_AutomatedReadability":"24.10","smart_queue":"0.00","readability_before":"0","readability_after":"0","readability_change":"0","category":"","tags":"","created_at":"2016-07-26 05:31:12","submitted_at":"2016-07-26 05:31:12","updated_at":"2016-09-28 12:38:54","taken_at":"2016-07-28 09:38:20","fixed_at":"2016-07-29 01:41:48","redone_at":null,"pay_status":"4","editor_paid":"0","editor_notes":"asass","user_rating":null},{"id":"1","name":"Jxhshhshs","originalText":"Sample Text2","originalNotes":"","originalTextLength":"4","fixedText":"","fixedTextNoMarkup":"","fixedTextComments":null,"price":"0.08","editor_price":"1.00","idOfRequestor":"5","idOfLastAssignedEditor":"7","editor_chosen":"0","status":"11","ref_id":"78eKju","job_category":"1","ratingOriginal":"0","ratingFixedQuality":"0","ratingFixedTimeliness":"0","promisedTime":"10","rating_FleschReadingEase":"97.00","rating_ColemanLiau":"38.60","rating_FleschGradeLevel":"0.00","rating_AutomatedReadability":"24.10","smart_queue":"0.00","readability_before":"0","readability_after":"0","readability_change":"0","category":"","tags":"","created_at":"2016-07-26 05:31:12","submitted_at":"2016-07-26 05:31:12","updated_at":"2016-09-28 12:38:54","taken_at":"2016-07-28 09:38:20","fixed_at":"2016-07-29 01:41:48","redone_at":null,"pay_status":"4","editor_paid":"0","editor_notes":"asass","user_rating":null}...]"}
ClosedJobs Demo

JobDetail

JobDetail - Get Detail of a Job

The purpose of this function is to get the detail of a job.

/JobDetail/:apikey/:id
curl -i https://editorr.com/api/editorr-job-api.php/JobDetail/apikey/hfghfhgf

Parameter

Field Type Description
apikey String

This is a unique key for each user.

Success 200

Field Type Description
jobs Array

This is the array of all closed jobs.

id Integer

This is a job ID.

Error 4xx

Field Description
MissingApiKey

Api Key is missing.

InvalidApiKey

Api Key is invalid.

MissingJobId

Job ID is missing.

InvalidJobId

Job ID is invalid.

{"name":"Jxhshhshs","job_category":"7","number_of_words":"4","editor":"Steve","status":"Closed","submitted_at":"Feb 19, 2019","fixed_at":"Feb 19, 2019","admin_notes":"Test note","editor_notes":"Test note","fixedText":"Sample fixed","originalText":"Sample original","cleanText":"Sample clean"}
JobDetail Demo

Create A New Job

CreateJob - Create a New Job

The purpose of this function is to create a new job.

/CreateJob/:apikey?title=Sample+Job&content=Sample+content+submitted
curl -i https://editorr.com/api/editorr-job-api.php/CreateJob/apikey?title=Sample+Job&content=Sample+content+has+submitted

Parameter

Field Type Description
apikey String

This is a unique key for each user.

title String

This is the title of the job.

content String

This is the content of the job.

Success 200

Field Type Description
success String

This is successfully submitting a job to be edited.

Error 4xx

Field Description
MissingApiKey

Api Key is missing.

InvalidApiKey

Api Key is invalid.

emptyTitle

Title is empty.

emptyDescription

Description is empty.

connectionIssue

When there is database or internet connection issue.

{"success":"Posting has submitted successfully."}
CreateJob Demo

JobStatus

JobStatus - Read Status of a Job

The purpose of this function is to get the current status of a job.

The statuses are:

draft
submited
editing
reediting
rejected
fixed
closed

/JobStatus/:apikey/:id

Permission:admin 

curl -i https://editorr.com/api/editorr-job-api.php/JobStatus/apikey/8316

Parameter

Field Type Description
apikey String

This is a unique key for each user.

id Integer

This is a job ID.

Success 200

Field Type Description
Status Integer

This is the status of the job.

Error 4xx

Field Description
MissingApiKey

Api Key is missing.

InvalidApiKey

Api Key is invalid.

MissingJobId

Job ID is missing.

InvalidJobId

Job ID is invalid.

{"Status":"fixed"}
Job Status Demo

JobStatus

Editor - Get the Editor Who is Editing the Job

The purpose of this function is to get the ID of the editor editing the job.

/Editor/:apikey/:id

Permission:admin 

curl -i https://editorr.com/api/editorr-job-api.php/Editor/apikey/8316

Parameter

Field Type Description
apikey String

This is a unique key for each user.

id Integer

This is a job ID.

Success 200

Field Type Description
name String

This is the name of editor.

Error 4xx

Field Description
MissingApiKey

Api Key is missing.

InvalidApiKey

Api Key is invalid.

MissingJobId

Job ID is missing.

InvalidJobId

Job ID is invalid.

{"name":"brian"}
Editor Demo

ChatRecords - Read Data for a Job

The purpose of this function is to get the chat records with an editor.

/chatRecords/:apikey/:id
curl -i https://editorr.com/api/editorr-job-api.php/JobStatus/8316

Parameter

Field Type Description
apikey String

This is the unique key for each user.

id String

The user's ID.

Success 200

Field Type Description
id String

The user's ID.

name Date

Full name of the user.

Error 4xx

Field Description
MissingApiKey

Api Key is missing.

InvalidApiKey

Api Key is invalid.

MissingJobId

Job ID is missing.

InvalidJobId

Job ID is invalid.

FixedJob - Get Fixed Content of a Job

The purpose of this function is to get the fixed content of the job with markups.

/FixedJob/:apikey/:id

Permission:none

curl -i https://editorr.com/api/editorr-job-api.php/FixedJob/apikey/8316

Parameter

Field Type Description
apikey String

This is a unique key for each user.

id Integer

This is a job ID.

Success 200

Field Type Description
content String

This is the fixed content of a job with markups.

Error 4xx

Field Description
MissingApiKey

Api Key is missing.

InvalidApiKey

Api Key is Invalid.

MissingJobId

Job ID is missing.

InvalidJobId

Job ID is invalid.

{"content":"<\/p>This job has been created<\/span>created<\/span> to fix  wartning<\/span>warning<\/span> issue<\/div><\/p>"}
Fixed Job Demo

OriginalJob - Get Original Content of a Job

The purpose of this function is to get the orginal content that was submitted by the user prior to being edited.

/OriginalJob/:apikey/:id

Permission:none

curl -i https://editorr.com/api/editorr-job-api.php/OriginalJob/apikey/8316

Parameter

Field Type Description
apikey String

This is a unique key for each user.

id Integer

This is a job ID.

Success 200

Field Type Description
content String

This is the original content of a Job.

Error 4xx

Field Description
MissingApiKey

Api Key is missing.

InvalidApiKey

Api Key is invalid.

MissingJobId

Job ID is missing.

InvalidJobId

Job ID is invalid.

{"content":"This job has been cresated to fix \u00a0wartning issue<\/div><\/p>"}
Original Job Demo

CleanJob - Get Clean Content of a Job

This function has same errors like POST /user, but errors not defined again, they were included with "apiUse"

/CleanJob/:apikey/:id

Permission:none

curl -i https://editorr.com/api/editorr-job-api.php/CleanJob/apikey/8316

Parameter

Field Type Description
apikey String

TThis is a unique key for each user.

id Integer

This is a job ID.

Success 200

Field Type Description
content String

This is the clean content of a job without any markups.

Error 4xx

Field Description
MissingApiKey

Api Key is missing.

InvalidApiKey

Api Key is invalid.

MissingJobId

Job ID is missing.

InvalidJobId

Job ID is invalid.

{"content":"<\/p>This job has been cresated<\/span>created<\/span> to fix  wartning<\/span>warning<\/span> issue<\/div>
Clean Job Demo

JobNumber

JobNumber - Get the Job Number of the Job

The purpose of this function is to get the job number of the job.

/JobNumber/:apikey/:id

Permission:admin 

curl -i https://editorr.com/api/editorr-job-api.php/JobNumber/apikey/8316

Parameter

Field Type Description
apikey String

This is a unique key for each user.

id Integer

This is a Job ID.

Success 200

Field Type Description
jobNumber String

This is the reference number of a job

Error 4xx

Field Description
MissingApiKey

Api Key is missing.

InvalidApiKey

Api Key is invalid.

MissingJobId

Job ID is missing.

InvalidJobId

Job ID is invalid.

{"jobNumber":"1OxqQp"}
Job Number Demo

UserPrice

UserPrice - Get the user price of the Job

The purpose of this function is the get the price the user paid for this job.

/UserPrice/:apikey/:id

Permission:admin 

curl -i https://editorr.com/api/editorr-job-api.php/UserPrice/apikey/8316

Parameter

Field Type Description
apikey String

This is unique key for each user.

id Integer

This is a Job ID.

Success 200

Field Type Description
price decimal

This is the price of user for job

Error 4xx

Field Description
MissingApiKey

Api Key is missing.

InvalidApiKey

Api Key is Invalid.

MissingJobId

Job ID is missing.

InvalidJobId

Job ID is invalid.

{"price":"0.18"}
User Price Demo

TimeToFix

TimeToFix - Get the time to fix for the Job

The purpose of this function is the get the time it took to fix the job.

/timeToFix/:apikey/:id

Permission:admin 

curl -i https://editorr.com/api/editorr-job-api.php/timeToFix/8316

Parameter

Field Type Description
apikey String

This is unique key for each user.

id Integer

This is a Job ID.

Success 200

Field Type Description
name String

This is the name of editor

Error 4xx

Field Description
MissingApiKey

Api Key is missing.

InvalidApiKey

Api Key is Invalid.

MissingJobId

Job ID is missing.

InvalidJobId

Job ID is invalid.

Reedit

Reedit - Get the reedited content of the Job

The purpose of this function is to get the reedited version of a job.

/reedit/:apikey/:id

Permission:admin 

curl -i https://editorr.com/api/editorr-job-api.php/reedit/8316

Parameter

Field Type Description
apikey String

This is unique key for each user.

id Integer

This is a Job ID.

Success 200

Field Type Description
name String

This is the name of editor

Error 4xx

Field Description
MissingApiKey

Api Key is missing.

InvalidApiKey

Api Key is Invalid.

MissingJobId

Job ID is missing.

InvalidJobId

Job ID is invalid.

WordCount

WordCount - Get the word count of the Job

The purpose of this function is the get the word count of the job.

/WordCount/:apikey/:id

Permission:admin 

curl -i https://editorr.com/api/editorr-job-api.php/WordCount/apikey/8316

Parameter

Field Type Description
apikey String

This is unique key for each user.

id Integer

This is a Job ID.

Success 200

Field Type Description
words Integer

These are total words of job description

Error 4xx

Field Description
MissingApiKey

Api Key is missing.

InvalidApiKey

Api Key is Invalid.

MissingJobId

Job ID is missing.

InvalidJobId

Job ID is invalid.

{"words":"9"}
Word Count Demo

PromisedTime

PromisedTime - Get the promised time for the Job

The purpose of this function is to get the promised time for this job.

/PromisedTime/:apikey/:id

Permission:admin 

curl -i https://editorr.com/api/editorr-job-api.php/PromisedTime/apikey/8316

Parameter

Field Type Description
apikey String

This is unique key for each user.

id Integer

This is a Job ID.

Success 200

Field Type Description
time Decimal

This is the promised time for job

Error 4xx

Field Description
MissingApiKey

Api Key is missing.

InvalidApiKey

Api Key is Invalid.

MissingJobId

Job ID is missing.

InvalidJobId

Job ID is invalid.

{"data":"0"}
Promised Time Demo

RateJob

RateJob - Give rating to the Job.

The purpose of this function is to submit rating to the Job.

/RateJob/:apikey/:id
curl -i https://editorr.com/api/editorr-job-api.php/RateJob/apikey/8316

Parameter

Field Type Description
apikey String

This is unique key for each user.

id Integer

This is a Job ID.

rating Decimal

This will be rating submitted by User.

Success 200

Field Type Description
status Integer

It will be in the form of 1 or 0.

Error 4xx

Field Description
MissingApiKey

Api Key is missing.

InvalidApiKey

Api Key is Invalid.

MissingJobId

Job ID is missing.

InvalidJobId

Job ID is invalid.

MissingRating

Rating is Missing.

{"status":"1"}

Common Error Responses

Common Error Responses - List common error responses

The purpose of this section is to list common error samples for each api.


1. MissingApiKey - This error will come when no Api Key will be provided.

{"error":"MissingApiKey"}

2. InvalidApiKey - This error will come when Invalid Api Key will be entered.

{"error":"InvalidApiKey"}

3. MissingJobId - This error will come when no Job ID will be provided.

{"error":"MissingJobId"}

4. InvalidJobId - This error will come when improper Job ID will be provided.

{"error":"InvalidJobId"}