# Extracting web users project list and api key programmatically

**URL:** <https://forum.dimagi.com/t/extracting-web-users-project-list-and-api-key-programmatically/3569>\
**Category:** Developers\
**Created:** [June 19, 2017, 9:33pm UTC](https://forum.dimagi.com/t/extracting-web-users-project-list-and-api-key-programmatically/3569 "2017-06-19T21:33:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Agarten](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/a/ac8455/32.png) [@Agarten](https://forum.dimagi.com/u/Agarten)\
**Post date:** [June 19, 2017, 9:33pm UTC](https://forum.dimagi.com/t/extracting-web-users-project-list-and-api-key-programmatically/3569/1 "2017-06-19T21:33:48Z")

</div>

Hey all,

I am a developer from Mercy Corps, who is working on building an API  
integration of Commcare into our monitoring and evaluation tracking &  
analysis tool. I talked to Ryan Hartford from your team and he said I  
should post here regarding suggested features that we would like to see:

1.) My Projects List: We would like the ability to get the list provided  
under this tab so that we can see a list of a web user's different CommCare  
projects. At the moment, we have our system set up where our users have to  
insert the name of the project they want to extract form reports from  
manually. It is set up this way because commcare list forms api requires  
the project name (aka domain). Many of our users are not super computer  
literate so the less steps they have to do the better. Additionally, in  
certain cases the domain name is not the same as the project name. I assume  
this occurs when there are duplicate project names in your system. For  
example, when I was testing I set up a project with the name test, but it  
had the domain name test-20170447.

2.) Programmatic Access to API Key: The other request we have is the  
ability to retrieve the commcare API key programmatically so that users no  
longer have to retrieve their api key manually or only be temporarily  
logged in with their password. Our ideal setup would be one where users can  
login to our system, have the ability to import their form data to our  
site, and not have to login again until they have logged out or their login  
session has expired.

Let me know if you have any questions. We appreciate being able to provide  
feedback. Could you let us know whether if you are willing to add to your  
backlog? That feedback would help us communicate expectations back to our  
users here at Mercy Corps.

---

<div class="post-metadata">

**Author:** ![Simon\_Kelly](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/simon_kelly/32/494_2.png) [@Simon\_Kelly](https://forum.dimagi.com/u/Simon_Kelly)\
**Post date:** [June 26, 2017, 8:48am UTC](https://forum.dimagi.com/t/extracting-web-users-project-list-and-api-key-programmatically/3569/2 "2017-06-26T08:48:52Z")

</div>

Hi

I think you asked this question on this list before:  
[https://groups.google.com/d/topic/commcare-developers/um4KdqwMYm4/discussion](https://groups.google.com/d/topic/commcare-developers/um4KdqwMYm4/discussion)

We also do not have an API for retrieving API Keys.

Unfortunately we don't have any plans to add either of these items.

Simon Kelly  
Director of Server Engineer | Dimagi

> **···**
>
> On 19 June 2017 at 23:33, wrote:
> 
> > Hey all,
> > 
> > I am a developer from Mercy Corps, who is working on building an API  
> > integration of Commcare into our monitoring and evaluation tracking &  
> > analysis tool. I talked to Ryan Hartford from your team and he said I  
> > should post here regarding suggested features that we would like to see:
> > 
> > 1.) My Projects List: We would like the ability to get the list provided  
> > under this tab so that we can see a list of a web user's different CommCare  
> > projects. At the moment, we have our system set up where our users have to  
> > insert the name of the project they want to extract form reports from  
> > manually. It is set up this way because commcare list forms api requires  
> > the project name (aka domain). Many of our users are not super computer  
> > literate so the less steps they have to do the better. Additionally, in  
> > certain cases the domain name is not the same as the project name. I assume  
> > this occurs when there are duplicate project names in your system. For  
> > example, when I was testing I set up a project with the name test, but it  
> > had the domain name test-20170447.
> > 
> > 2.) Programmatic Access to API Key: The other request we have is the  
> > ability to retrieve the commcare API key programmatically so that users no  
> > longer have to retrieve their api key manually or only be temporarily  
> > logged in with their password. Our ideal setup would be one where users can  
> > login to our system, have the ability to import their form data to our  
> > site, and not have to login again until they have logged out or their login  
> > session has expired.
> > 
> > Let me know if you have any questions. We appreciate being able to provide  
> > feedback. Could you let us know whether if you are willing to add to your  
> > backlog? That feedback would help us communicate expectations back to our  
> > users here at Mercy Corps.
> > 
> > --
> > 
> > * * *
> > 
> > You received this message because you are subscribed to the Google Groups  
> > "CommCare Developers" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [commcare-developers+unsubscribe@googlegroups.com](mailto:commcare-developers+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
