# Organization and Group identification for Projects using the API

Using the API, you can do the following:

* Get a list of groups identified by GroupId by using the endpoint [Get a group](https://apidocs.snyk.io/?version=2024-09-03%7Ebeta#get-/groups/-group_id-).
* Get the list of Organizations that you have access to by using the endpoint [List accessible organizations](/snyk-api/reference/orgs.md#orgs).
* Find the Groupid by using the endpoint [List all the organizations a user belongs to](/snyk-api/reference/organizations-v1.md#orgs).
* Request a list of Organizations (identified by Orgid) based on a Groupid by using the endpoint [List all organizations in a group](/snyk-api/reference/orgs.md#groups-group_id-orgs).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.snyk.io/snyk-api/api-endpoints-index-and-tips/organization-and-group-identification-for-projects-using-the-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
