Logo
Profit.co's Public API Documentation

Get All OKRs API

GET https://api.profit.co/app/dao/v6/objective?a=getAll&startIndex=0&numRecords=<NUM_RECORDS>&ownerTypeId=<OWNER_TYPE_ID>&ownerId=<OWNER_ID>&startDate=MM/dd/yyyy&endDate=MM/dd/yyyy&apiKey=<API_KEY>&accessKey=<ACCESS_KEY>

To get all the OKRs (Individual, department, team and corporate OKRs) of your Profit.co account.

OWNERTYPEID - 8 or 49 or 91 or 1. It is an integer field and the value can be 8 for Individual Level (Employee) OKRs, 49 for department level OKRs, 91 for team level OKRs and 1 for Corporate (Company) level OKRs.

OWNER_ID - employee id (You can get this from get all employees API), department id (You can get this from get all departments API), team id (You can get this from get all teams API) or firm id.

 

Body PARAM

Key Datatype Required Description 
a
string action type
startIndex
number
numRecords
string Required: Integer, number of results to be returned. Max permissible value: 50
ownerTypeId
string Required: It is an integer field and the value can be 8 for Individual Level (Employee) OKRs, 49 for department level OKRs, 91 for team level OKRs and 1 for Corporate (Company) level OKRs.
ownerId
string Required: It can be employee id, department id, team id or firm id (You have to pass this value based on the owner type id and you can refer the Get departments, teams and employees APIs)
startDate
string Required: Quarter or target start date
endDate
string Required: Quarter or target end date
Curl
curl -X GET 'https://api.profit.co/app/dao/v6/objective?a=getAll&startIndex=0&numRecords=<NUM_RECORDS>&ownerTypeId=<OWNER_TYPE_ID>&ownerId=<OWNER_ID>&startDate=MM/dd/yyyy&endDate=MM/dd/yyyy&apiKey=<API_KEY>&accessKey=<ACCESS_KEY>?a=getAll&startIndex=0&numRecords=<NUM_RECORDS>&ownerTypeId=<OWNER_TYPE_ID>&ownerId=<OWNER_ID>&startDate=MM/dd/yyyy&endDate=MM/dd/yyyy&apiKey=<API_KEY>&accessKey=<ACCESS_KEY>'

ENDPOINTS