Page 1 of 1

API request error - 02367766

Posted: Fri Nov 04, 2016 12:02 pm
by mrswebsolutions

i have troubles with my API request to pull ClientCorporation, i keep getting the error:

"error" : "This URL is reserved for login purposes."

Can someone advise please, i use the following location: ... n={BHToken}

Re: API request error

Posted: Mon Nov 07, 2016 6:27 am
by lokuber
Your error message is pretty straightforward , is only used to login onto the API.
When you ask for your BhRestToken, you receive an URL to the closest BullHorn server/cluster that you must use for all requests.

Re: API request error

Posted: Mon Nov 07, 2016 11:50 am
by MikeCogle
Hi Mrswebsolutions,

This is Mike from Bullhorn Support. Lokuber is correct that the address is only used for logging into the REST API.

Once you're logged in with the access token (this step is noted here: ... first_call), you'll generate a "BhRestToken" and a "restUrl". The restUrl determines what URL you should be using to consctruct your query, and the BhRestToken is required to return the data.

For example, if I logged into the REST API and it returned the following:

Code: Select all

{    "BhRestToken": "4f63b538-e49e-4011-xxxx-xxxxxxxxxxxx",
I would construct the above URL to use rest23, so that it's

Code: Select all,name&BhRestToken=4f63b538-e49e-4011-xxxx-xxxxxxxxxxxx
where "123xyz" is the corpID which was returned, and "567" is the ID of the clientCorporation you would like to return.

I hope this helps moving forward. The rest of the steps for getting started are notated here:

Kind Regards,

Mike Cogle
Bullhorn Support.