Get your company's Marketplace keys
Answers which Marketplace keys your own company's Magento 2 installs use and what they can install. A key is never answered, only the last four characters of the public key.
GET/ api/ company/ magento-keys
Returns
200 The keys in use.
Fields of the 200 answer
agencystring or null
can_changebooleanRequired
commerce_sitesobject
The Adobe Commerce sites that use the keys.
Fields
countinteger
sitesarray
entitlementsobjectRequired
What the keys can install.
Fields
checked_atstring or nullRequired
Format: date-time.
commercebooleanRequired
errorstring or nullRequired
open_sourcebooleanRequired
fallbackstring or null
public_key_last4string or nullRequired
sourcestringRequired
Where the keys come from: company for the company's own, none when there are none. Other values name keys the company inherits.
updated_atstring or nullRequired
Format: date-time.
updated_byobject or any or nullRequired
Who saved the keys.
verified_atstring or nullRequired
Format: date-time.
If it is refused
| Status | Reason | What to do |
|---|---|---|
401 | none | Send a valid token as Authorization: Bearer <token>. |
403 | scope_required | Use a token with the scope named in scope. |
404 | feature_off | This feature is not on for your organisation yet. |
429 | rate_limited | Wait for the seconds in Retry-After. |
Reasons are listed by name in Errors and refusals.
The same task elsewhere
curl https://manage.corefinity.com/api/company/magento-keys \
-H "Authorization: Bearer $COREFINITY_TOKEN" \
-H "Accept: application/json"use Illuminate\Support\Facades\Http;
$response = Http::withToken(env('COREFINITY_TOKEN'))
->acceptJson()
->get('https://manage.corefinity.com/api/company/magento-keys');
$data = $response->json();const res = await fetch('https://manage.corefinity.com/api/company/magento-keys', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.COREFINITY_TOKEN}`,
Accept: 'application/json',
},
});
// An answer with no body (204) has nothing to parse.
const text = await res.text();
const data = text && JSON.parse(text);import os
import requests
res = requests.get(
"https://manage.corefinity.com/api/company/magento-keys",
headers={
"Authorization": f"Bearer {os.environ['COREFINITY_TOKEN']}",
"Accept": "application/json",
},
)
data = res.json() if res.content else None{
"agency": "own",
"can_change": true,
"commerce_sites": {
"count": 0,
"sites": []
},
"entitlements": {
"checked_at": "2026-11-19T08:00:00Z",
"commerce": true,
"error": null,
"open_source": true
},
"fallback": "none",
"public_key_last4": "3f9a",
"source": "company",
"updated_at": "2026-11-19T08:00:00Z",
"updated_by": {
"agency": null,
"id": 2012,
"name": "Daniel Reyes"
},
"verified_at": "2026-11-19T08:00:00Z"
}{
"message": "Unauthenticated."
}{
"code": "scope_required",
"message": "This access token does not have the destructive scope this needs. Use a token with the destructive scope.",
"reason": "scope_required",
"scope": "destructive"
}{
"code": "feature_off",
"message": "Not found.",
"reason": "feature_off"
}{
"code": "rate_limited",
"message": "Too many requests. Try again in 60 seconds.",
"reason": "rate_limited",
"retry_after_seconds": 60
}Try it
Was this helpful?