Please include id in responses

In addition to the url can you please include the id as a separate int in the response?

For example:

{ “projects”:[
{
“url”:“https://api.freeagent.com/v2/projects/1”,
“id”:1
“name”:“Test Project”,
“contact”:“https://api.freeagent.com/v2/contacts/1”,
“contact_id”:1
“contact_name”:“Acme Trading”,
}
]}

Hi @matt.groves,

Thanks a lot for this suggestion. For all intents and purposes, the url attribute is the full unique identifier for resources surfaced through the FreeAgent API as it contains all the information the API needs to understand what resource you’re requesting (for which environment, which type of resource such as contact, invoice, project etc, and which specific item of that type). My recommendation would be not to rely on the integer values in isolation as then you’d need to reconstruct the URL any time you need to access or refer to a particular resource, meaning your app would need to understand how to construct correct URLs for them.

Best wishes,

Ewa

Thanks Eva.

Is it possible to continue this conversation offline? I can send screen shots of why this is needed but I don’t want to share them on a public forum.

Hi @matt.groves,

Sure thing, I’ll start a private thread for us so that you can share any further details there.

If you check your private messages folder by clicking on your username in the top right corner and selecting on the envelope symbol, you’ll find a message from me where we continue this conversation.

Best wishes,

Ewa