@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, archived: bool=false, email: str, limit: int(int32)=100}
@returns(200) {paging: map{next: map{after: str, link: str}}, results: [map]}

@endpoint GET /crm/v3/owners/{ownerId}
@required {ownerId: int(int32)}
@optional {archived: bool=false, 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)}

@end
