List organizations a user can access
const url = 'https://apisandbox.puurk.com/organizations/example/access';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://apisandbox.puurk.com/organizations/example/access \ --header 'Authorization: Bearer <token>'Returns the organizations the given user has access to
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”User ID
Responses
Section titled “Responses”Successful operation
object
Unique identifier for the organization
External identifier for the organization
Name of the organization
Employer Identification Number
Path to the organization’s logo
Type of organization. Validated on create and update; any other value is rejected with 400 Invalid type. Must be one of: client, test.
User roles in the organization
object
Role of a user in an organization, as stored in the organization’s roles map. admin is not a role: it is a service-token scope action, and a request that sends it as a role gets 400. Of the organization roles, only owner and agencyadmin may change other members’ roles.
Organization settings
object
Puurk features enabled for the organization
object
Example
[ { "type": "client", "roles": { "additionalProperty": "owner" } }]Unauthorized