@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Crm Owners
@base https://api.hubapi.com
@version v3
@auth OAuth2 | ApiKey private-app-legacy in header | ApiKey private-app in header
@endpoints 2
@toc crm(2)

@endpoint GET /crm/v3/owners
@optional {after: str # The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results., archived: bool=false # Whether to return only results that have been archived., email: str # Filter by email address (optional), limit: int(int32)=100 # The maximum number of results to display per page.}
@returns(200) {paging: map{next: map{after: str, link: str}}, results: [map]} # successful operation

@endpoint GET /crm/v3/owners/{ownerId}
@desc Retrieve a specific owner by ID
@required {ownerId: int(int32)}
@optional {archived: bool=false # Whether to return only results that have been archived., idProperty: str(id/userId)=id}
@returns(200) {archived: bool, createdAt: str(date-time), email: str, firstName: str, id: str, lastName: str, teams: [map], type: str, updatedAt: str(date-time), userId: int(int32), userIdIncludingInactive: int(int32)} # successful operation

@end
