Read your partner workspace
GET
/api/partner/v1/meReturns 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_idstring · requiredbusinessstring or null · requirednamestring · requiredroleowner | member · requiredfeaturesobject · requiredpayee_referencestring or null · requiredpermissionsobject · requiredFields for permissions
request_agreementsboolean · requiredTrue only for an owner whose workspace enables company agreement requests.
request_closureboolean · requiredread_settlementboolean · requiredmanage_webhooksboolean · 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
errorstring · requireddetailstringrequest_idstring
401 · Missing, expired, revoked or wrong-resource access token.
application/json
errorstring · requireddetailstringrequest_idstring
403 · The signed account or role lacks access to this operation.
application/json
errorstring · requireddetailstringrequest_idstring
404 · The resource is unknown or outside this account.
application/json
errorstring · requireddetailstringrequest_idstring
409 · Resource state or idempotency conflict.
application/json
errorstring · requireddetailstringrequest_idstring
429 · Rate limit reached. Back off and retry.
application/json
errorstring · requireddetailstringrequest_idstring
503 · Service or provider unavailable. Check the operation receipt before retrying a write.
application/json
errorstring · requireddetailstringrequest_idstring
