Browse the docs

Reference · Workspace

Get the current workspace

GEThttps://api.paygoro.com/v1/workspace

Returns the workspace your API key belongs to and the scopes it carries. Useful as a connectivity check — it needs no scope.

Authorization

Requires a bearer API key; no scope needed. See Authentication.

Response

200 · application/json

FieldTypeDescription
idstringOpaque resource id.
namestring
apiKeyobjectThe key that authenticated this request.
idstringOpaque resource id.
namestringThe label given to the key when created.
scopesarray of stringScopes granted to this key.

Errors

400BAD_REQUESTThe request was malformed or failed validation.
401UNAUTHORIZEDMissing, malformed, expired or revoked API key.
403FORBIDDENThe API key does not have the scope this operation requires.
404NOT_FOUNDNo resource with this id exists in your workspace, or a `companyId` filter does not match one of your companies.
429TOO_MANY_REQUESTSRate limit exceeded. Retry after the `Retry-After` header.

All errors share one envelope — see Errors.