Back to » Love the way you work.


TimeReports API - "You have no access to this time report"

Everytime I try to retrieve data from the TimeReports API, it returns "You have no access to this time report".

For example,


<?xml version="1.0" encoding="utf-8"?> 0.6errorunauthorizedYou have no access to this timereport

The value 806033 is the "reference" That is returned from which works correctly using OAuth.

Any Ideas?

Vote Result

Score: 0.0, Votes: 0
Hello Steve,thank you for

Hello Steve,

thank you for choosing oDesk API!

Please, note that documentation says - '{company}', and has an example ' week_worked_on, assignment_team_id, sum(hours), sum(charges) WHERE worked_on > '2009-10-01' AND worked_on <= '2009-10-31'&tqx=out:json'

but in your request you use reference id instead of company id.

Getting the company id

Hi Maksym,

Thanks. What is the company id and what is the best way to programmatically get the company id? The call to

returns reference but not id.



From documentation -

From documentation - '{company} The company ID (where to get?)', please follow the link to find out the answer.

If you have already implemented Team API, there is that returns company and team ids.

Still No Company ID

Hi Maksym,

I've looked at the link you suggested and I don't see any reference to company id in the API.

It only returns these fields as per this documentation:

I see team id, but not company id, only the reference.

I also tried this API
( )

and it doesn't return a company id either.


Steve,doesn't a response has


doesn't a response have 'id: "..."' inside of tag 'teamroom'?

Still no company id

Hi Maksym,

There is an 'id' in the teamroom XML but it's the team id and not the company id.

The doc for teamrooms says there is a company_recno that is a unique number to identify the current company.

However, when I call that API company_recno is not returned.


"id" is what you need, it

"id" is what you need, it should be smth like "myliteralid".
Please, contact apisupport and provide full request with details, in case you still can not find needed data (I just can not post here your privat data).