Skip to content
Build your own business

Read your partner workspace

GET/api/partner/v1/me

Returns the acting account, role and effective permissions. Check permissions.request_agreements before offering to request a company agreement. Resource access also depends on the company's current signed credit and lifecycle state.

Authentication Send your OAuth access token as a Bearer token with the partner.lifecycle scope.

Responses

200 · Current workspace

application/json

  • partner_id string · required
  • business string or null · required
  • name string · required
  • role owner | member · required
  • features object · required
  • payee_reference string or null · required
  • permissions object · required
    Fields for permissions
    • request_agreements boolean · required

      True only for an owner whose workspace enables company agreement requests.

    • request_closure boolean · required
    • read_settlement boolean · required
    • manage_webhooks boolean · required

Example

{
  "partner_id": "partner_example",
  "business": "Example Field Services",
  "name": "Example owner",
  "role": "owner",
  "features": {},
  "payee_reference": "partner_example",
  "permissions": {
    "request_agreements": true,
    "request_closure": true,
    "read_settlement": true,
    "manage_webhooks": true
  }
}
400 · Invalid input. Correct the request and use a new key for changed input.

application/json

  • error string · required
  • detail string
  • request_id string
401 · Missing, expired, revoked or wrong-resource access token.

application/json

  • error string · required
  • detail string
  • request_id string
403 · The signed account or role lacks access to this operation.

application/json

  • error string · required
  • detail string
  • request_id string
404 · The resource is unknown or outside this account.

application/json

  • error string · required
  • detail string
  • request_id string
409 · Resource state or idempotency conflict.

application/json

  • error string · required
  • detail string
  • request_id string
429 · Rate limit reached. Back off and retry.

application/json

  • error string · required
  • detail string
  • request_id string
503 · Service or provider unavailable. Check the operation receipt before retrying a write.

application/json

  • error string · required
  • detail string
  • request_id string

Download the full OpenAPI specification