Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Get all visible projects

Returns all projects which are visible for the currently logged in user. If no user is logged in, it returns the list of projects that are visible when using anonymous access.

GET/api/2/project
Authorization
AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

or
AuthorizationBearer token · headerrequired

Personal Access Token — Administration > Profile > Personal Access Tokens

AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

Query parameters
includeArchivedboolean

Whether to include archived projects in response, default: false

expandstring

Parameters to expand

recentinteger<int32>

If this parameter is set then only projects recently accessed by the current user (if not logged in then based on HTTP session) will be returned (maximum count limited to the specified number but no more than 20)

browseArchiveboolean

Whether to include only projects where current user can browse archive

Responses
200

Project data

archivedboolean
avatarUrlsobject
descriptionstring
idstring
keystring
namestring
selfstring<uri>
401

Returned if the user is not authenticated

403

Returned if the user does not have rights to view projects

Try it
Server
Authorization
Parameters
Request
curl -X GET 'http://jira.example.com/rest/api/2/project' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json'
Response
{
  "archived": false,
  "avatarUrls": "http://www.example.com/jira/secure/projectavatar?size=xsmall&pid=10000",
  "description": "Example",
  "id": "10000",
  "key": "EX",
  "name": "Example",
  "self": "http://www.example.com/jira/rest/api/2/project/EX"
}

Was this page helpful?