Search…
API Reference
Retrieve the application
How to fetch the application via API
To fetch the application, send a GET request to the /api/application endpoint.

Request

GET https://yourdomain.commercelayer.io/api/application

Example

Request
Response
The following request fetches the application in scope:
1
curl -g -X GET \
2
'https://yourdomain.commercelayer.io/api/application/' \
3
-H 'Accept: application/vnd.api+json' \
4
-H 'Authorization: Bearer your-access-token'
Copied!
On success, the API responds with a 200 OK status code, returning a single resource object:
1
{
2
"data": {
3
"id": "xYZkjABcde",
4
"type": "applications",
5
"attributes": {
6
"name": "My app",
7
"kind": "sales-channel",
8
"public_access": "true",
9
"redirect_uri": "https://bluebrand.com/img/logo.svg",
10
"scopes": "market:all market:9 market:122 market:6 stock_location:6 stock_location:33",
11
"created_at": "2018-01-01T12:00:00.000Z",
12
"updated_at": "2018-01-01T12:00:00.000Z",
13
"reference": "ANY-EXTERNAL-REFEFERNCE",
14
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
15
"metadata": {
16
"foo": "bar"
17
}
18
},
19
"relationships": {
20
},
21
"meta": {
22
"mode": "test"
23
}
24
}
25
}
Copied!
Last modified 2mo ago
Copy link