Appdome REST API for collaboration | Get Team info

Learn how to use Appdome’s REST API for collaboration: Get team status, members, and entitlements using Appdome “Get My Teams” REST API.

When building apps in a team, you might often want to get the current state of the team or see what happened in the team in a period of time or if an unexpected event occurred in your team, you’ll probably want to know what happened in the team recently that led to this.

This Knowledge Base article outlines how you can use the Appdome REST API access your teams’ current status and retrieve its audit log.

We hope you find this knowledge base useful and enjoy using Appdome!

Prerequisites for using the Appdome REST API for collaboration

In order to use Appdome’s Get My Teams REST API, you’ll need:

How to use the Appdome Team Information API

You’ll need to include your API Token as the value of the Authorization header.

URLhttps://fusion.appdome.com/api/v1/user/teams
MethodGET
Content-Typemultipart/form-data
HeadersAuthorization: <API Token>
API DescriptionAllows you to retrieve your teams’ status and information
CURL Example
curl -X GET https://fusion.appdome.com/api/v1/user/teams -H "Authorization: gLz3u8yh1g23PqUkDVo-TA"
Response Format
[
{ //multiple
    "id": <team ID>, 
    "name": <Team name>,
    "description": <Team description>,
    "founder_email": <team founder's email>",
    "founder_first_name": <Team founders' first name>,
    "founder_last_name": <Team founder's Last name>,
    "founder_id": <Team founder's user ID>,
    "users":[ // mutiple
        {
            "user_id": <User's ID>,
            "email": <User's email>",
            "first_name": <User's first name>,
            "last_name": <User's last name>,
            "team_id": <Team ID>,
            "association_id": <ID of the association between the user and the team (mostly internal)>,
            "entitlements": <The entitlements of the user> // multiple,
            "status": <approved/invited>
       }
    ]
}
]

Getting Team Events using the Appdome Audit Log API

You’ll need to include your API Token as the value of the Authorization header and the Team ID, start date and end date as URL encoded parameters.

URLhttps://fusion.appdome.com/api/v1/events?team_id=<team_id>&start_date=<start_date>&end_date=<end_date>
MethodGET
Content-Typeapplication/json
HeadersAuthorization: <API Token>
Query Parameters{
"team_id": <Team's ID>.
"start_date": <Get logs starting at this date>
"end_date": <Get logs up to this date>
}
// date format: 2018-01-01T10:00:29.059Z
API DescriptionAllows you to download an audit log for your teams.
CURL Example
curl -X GET -H "Authorization: gLz3u8yh1g23PqUkDVo-TA" -H 'content-type: application/json' https://fusion.appdome.com/api/v1/events?team_id=pJsLn_m4vDqV_q-MaJGqgA&start_date=2019-01-01T10:00:29.059Z&end_date=2019-02-01T10:00:29.059Z
Response FormatA JSON response holding the selected team audit log

How Do I Learn More

Check out Appdome Platform, or learn more about Appdome-DEV REST API and Appdome-DEV.

You can also use our API requests Postman Collection.

If you have any questions, about using Appdome’s REST API for collaboration, please send them our way at support@appdome.com or via the chat window on the Appdome platform.

Thank you and try Appdome!

Thanks for visiting Appdome! Our mission is to make mobile integration easy. We hope we’re living up to the mission with your project. If you don’t already have an account, you can sign up for free.

Aaron Singer

Have a question?

Ask an expert

ScottMaking your security project a success!