The Marketplace API is a RESTful API that allows you to manage apps and your vendor account.
Unsure about the types exposed in this API? Read more about our terminology.
Version 2 is the latest release of the Marketplace API. Scroll down to view the latest API documentation for this version.
The Marketplace API uses HTTP basic authentication. The username is your Atlassian Account email and the password is a generated API token. Once authenticated, you can view and modify most properties of your apps and your account. If you are not logged in, you are considered an unauthenticated user and will not be able to edit apps or vendor information.
All Uniform Resource Identifiers (URIs) start with the following prefix:
1 2https://marketplace.atlassian.com/rest/2
When a resource provides a link to another resource, the link URI will not include the hostname (for instance, the link will be /rest/2/addons
rather than https://marketplace.atlassian.com/rest/2/addons
).
URIs referring to content that is not provided by Atlassian Marketplace are always absolute (that is, they use http:// or https://) and are encoded as ordinary string properties.
New Marketplace API URIs
Marketplace is coming up with new APIs and URIs start with the following prefix:
1 2https://api.atlassian.com/rest/3
These APIs can be accessed here
All request and response representations are in JSON and use the content type application/json
with the UTF-8 character set, except for PATCH
requests.
The Marketplace API uses standard HTTP methods. Successful POST
, PUT
, and PATCH
requests return a Location
header in addition to the HTTP status codes documented below. Successful DELETE
requests return only the status code. See the Errors section for information about responses that return an error.
Method | Description | Successful response |
---|---|---|
GET | All GET requests are idempotent. | 200 |
POST | Creates a new entity. | 201 |
PUT | Modifies all editable properties of existing entity. It cannot be applied to a collection resource. | 204 |
PATCH | Modifies only selected properties of an existing entity. It cannot be applied to a collection resource. Request bodies use the JSON Patch document structure with the content type application/json-patch+json . | 204 |
DELETE | Removes an entity. It cannot be applied to a collection resource and accepts no request body. | 204 |
The Marketplace API uses pagination to limit response size for resources that may return large numbers of results. HTTP clients may specify a smaller page size of N
by adding the query parameter limit=N
. A client may also specify a starting offset for a paginated resource by adding the query parameter offset=N
, meaning that the first N
items are skipped. Non-paginated resources ignore the limit
and offset
parameters:
offset
(optional) - Specifies the number of items to skip. The default value is 0.limit
(optional) - Specifies the maximum page size, between 0 and 50, with a default value of 10. Setting limit=0
returns only the overall properties of a collection resource, such as the total number of available items, without getting the properties of any individual item.If the limit
argument fails to validate, the API may respond with an error like the example below:
1 2{ errors: [ { message: "limit: Must be an integer" } ] }
All resources containing links to Atlassian Marketplace resources and web pages use the HAL specification with JSON (with some extensions as described below under POST
and PUT
, for cases that HAL does not cover). Such links will always be within a top-level _links
or _embedded
object. External links provided by third parties are considered simple data properties and can appear anywhere in a representation.
All resource links should:
/rest/2/addons.
self
link referring to themselves.Links to the Marketplace website may be absolute or relative URIs. External links must always be absolute URIs.
When available, paginated responses provide the next
and prev
links to retrieve the next or previous page of items:
next
Retrieves the next page of items.prev
Retrieves the previous page of items.All dates referenced by the API are in Coordinated Universal Time (UTC).
The following response status codes may be accompanied by an error representation.
Status | Description |
---|---|
400 | Request body is malformed or has an illegal property value. |
401 | Authentication is required. |
403 | User was authenticated but is not authorized for this operation. |
404 | Resource does not exist or is not visible to this user. |
409 | Resource cannot be created or modified due to some state constraint. |
500 | Unexpected internal error in the Atlassian Marketplace. |
502 | Unexpected error in an external service. |
Error responses may contain a JSON representation with a single top-level property, errors
, that contains an array of objects (each with a message) and optional path
and code
properties. The path
uses JSON Pointer format to refer to an invalid field in the request representation. If path
is not present, the message describes a general condition that isn't tied to a specific field. If present, the code
is a string that uniquely identifies the type of error. An example appears below:
1 2{ "errors": [ { "message": "There is a general problem." }, { "path": "/name", "message": "cannot be longer than 5000 characters" } ] }
Rate this page: