# Please include id in responses

**URL:** <https://api-discuss.freeagent.com/t/please-include-id-in-responses/2205>\
**Category:** Feature Requests\
**Created:** [11 August 2020 11:05 UTC](https://api-discuss.freeagent.com/t/please-include-id-in-responses/2205 "2020-08-11T11:05:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![matt.groves](https://api-discuss.freeagent.com/user_avatar/api-discuss.freeagent.com/matt.groves/32/287_2.png) [@matt.groves](https://api-discuss.freeagent.com/u/matt.groves)\
**Post date:** [11 August 2020 11:05 UTC](https://api-discuss.freeagent.com/t/please-include-id-in-responses/2205/1 "2020-08-11T11:05:59Z")

</div>

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](https://api.freeagent.com/v2/projects/1)”,  
“id”:1  
“name”:“Test Project”,  
“contact”:“[https://api.freeagent.com/v2/contacts/1](https://api.freeagent.com/v2/contacts/1)”,  
“contact\_id”:1  
“contact\_name”:“Acme Trading”,  
}  
]}

---

<div class="post-metadata">

**Author:** ![Ewa\_Lipinska](https://api-discuss.freeagent.com/user_avatar/api-discuss.freeagent.com/ewa_lipinska/32/235_2.png) [@Ewa\_Lipinska](https://api-discuss.freeagent.com/u/Ewa_Lipinska)\
**Post date:** [13 August 2020 16:08 UTC](https://api-discuss.freeagent.com/t/please-include-id-in-responses/2205/2 "2020-08-13T16:08:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![matt.groves](https://api-discuss.freeagent.com/user_avatar/api-discuss.freeagent.com/matt.groves/32/287_2.png) [@matt.groves](https://api-discuss.freeagent.com/u/matt.groves)\
**Post date:** [18 August 2020 15:05 UTC](https://api-discuss.freeagent.com/t/please-include-id-in-responses/2205/3 "2020-08-18T15:05:36Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Ewa\_Lipinska](https://api-discuss.freeagent.com/user_avatar/api-discuss.freeagent.com/ewa_lipinska/32/235_2.png) [@Ewa\_Lipinska](https://api-discuss.freeagent.com/u/Ewa_Lipinska)\
**Post date:** [20 August 2020 15:54 UTC](https://api-discuss.freeagent.com/t/please-include-id-in-responses/2205/4 "2020-08-20T15:54:48Z")

</div>

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.

 ![screenshot](https://freeagent-api-discuss-assets-production.s3.dualstack.eu-west-1.amazonaws.com/original/1X/c0c913aa1fc49c2be114d8a616c14a6d7756d00b.png)

Best wishes,

Ewa
