Endpoints
The actor object
Who the current credentials belong to.
Attributes
- objectstring
Names the type of this object. Always
actor. - user_idstring
Id of the account the credentials belong to.
- kindstring
designer: a seller on 3DAPI, using the API for their own store.integrator: a company building on the API through the API dashboard.
Possible valuesdesignerintegrator - authenticated_withstring
api_keyfor thex-api-keyheader,sessionfor a signed-in API dashboard user,oauthfor an app the user connected and approved, such as Claude or ChatGPT.Possible valuessessionapi_keyoauth - scopesarray of string or null
The scopes stored on the API key, as chosen when it was created: per-resource scopes such as
products:read, or a legacy permission (full,orderorpricing). For a connected app, the scopes the user approved. Seeeffective_scopesfor what they allow. Null for sessions, which are not scoped.Possible valuespricingorderfullproducts:readproducts:writeorders:readorders:writeorders:read_customerstocks:readstocks:writeextras:readextras:writeqc:readqc:writewallet:readwebhooks:readquotes:readquotes:write - effective_scopesarray of string or null
What the API key may actually do, as the per-resource scopes operations list in
x-required-scopes:scopeswith legacy permissions expanded.fullgives every scope (customer data included),ordergivesorders:readandorders:write,pricinggives none in this API. Null for sessions, which are not scoped.Possible valuesproducts:readproducts:writeorders:readorders:writeorders:read_customerstocks:readstocks:writeextras:readextras:writeqc:readqc:writewallet:readwebhooks:readquotes:readquotes:write - approvalstring or null
Integrators only, null for designers. A
pendingintegrator can explore the API; going live needsapproved.Possible valuespendingapprovedrejected
{
"object": "actor",
"user_id": "44444444-4444-4444-8444-444444444444",
"kind": "designer",
"authenticated_with": "api_key",
"scopes": [
"order"
],
"effective_scopes": [
"orders:read",
"orders:write"
],
"approval": null
}Identify the current credentials
GET/
- Credentials
- Any valid API key. A signed-in dashboard session works too.
- For
- Designers and Integrators
- Operation id
get_me
Returns who the credentials belong to and what they may do. Call it first to check that an API key works and which scopes it carries.
Returns200 OK
The credentials are valid. Returns the actor object.
Responses
- 200
The credentials are valid.
- 401
Credentials are missing (
missing_credentials), the API key is unknown or inactive (invalid_api_key), the session expired (invalid_session), or both a key and a session were sent (ambiguous_credentials). - 403
The account may no longer use the API (
account_blacklisted). - 429
Too many requests (
rate_limited): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in theRetry-Afterheader, then retry;detailshaslimit,window_seconds,reset_atandretry_after_seconds.
Errors use the error object.
curl "https://public-api.dapi.digital/v2/me" \
-H "x-api-key: $DAPI_API_KEY"{
"object": "actor",
"user_id": "44444444-4444-4444-8444-444444444444",
"kind": "designer",
"authenticated_with": "api_key",
"scopes": [
"order"
],
"effective_scopes": [
"orders:read",
"orders:write"
],
"approval": null
}