Download OpenAPI specification:
API calls to authenticate the user. These calls are also included in other API documentation for convenience.
| username required | string The user's myTurn.com username, or their membership ID with their organization/tool library. |
| password required | string The user's myTurn.com password. |
| orgTypeId | number The id of the organization type to use for login. Used only for organizations that share login tokens ("API Uses Network Login"). |
{- "username": "string",
- "password": "string",
- "orgTypeId": 0
}{- "username": "string",
- "lastName": "string",
- "firstName": "string",
- "displayName": "string",
- "emailAddress": "string",
- "expires_in": 0,
- "token_type": "Bearer",
- "access_token": "string",
- "roles": [
- "string"
], - "isAdmin": true,
- "membership": {
- "name": "string",
- "mayBorrow": true,
- "mayUseKiosk": true,
- "mayBorrowMax": 0,
- "expiration": "string",
- "isExpired": true,
- "missingAgreements": true,
- "missingUserFields": true,
- "missingPaymentMethod": true
}, - "organizations": [
- {
- "id": "string",
- "apiUrl": "string",
- "name": "string",
- "logo": "string",
- "selfServeEnabled": true,
- "membership": {
- "name": "string",
- "mayBorrow": true,
- "mayUseKiosk": true,
- "mayBorrowMax": 0,
- "expiration": "string",
- "isExpired": true,
- "missingAgreements": true,
- "missingUserFields": true,
- "missingPaymentMethod": true
}
}
]
}| grant_type required | string Value: "refresh_token" Must always be "refresh_token". |
| refresh_token required | string The refresh token issued to the client during a previous login or refresh. |
{- "username": "string",
- "lastName": "string",
- "firstName": "string",
- "displayName": "string",
- "emailAddress": "string",
- "expires_in": 0,
- "token_type": "Bearer",
- "access_token": "string",
- "roles": [
- "string"
], - "isAdmin": true,
- "membership": {
- "name": "string",
- "mayBorrow": true,
- "mayUseKiosk": true,
- "mayBorrowMax": 0,
- "expiration": "string",
- "isExpired": true,
- "missingAgreements": true,
- "missingUserFields": true,
- "missingPaymentMethod": true
}, - "organizations": [
- {
- "id": "string",
- "apiUrl": "string",
- "name": "string",
- "logo": "string",
- "selfServeEnabled": true,
- "membership": {
- "name": "string",
- "mayBorrow": true,
- "mayUseKiosk": true,
- "mayBorrowMax": 0,
- "expiration": "string",
- "isExpired": true,
- "missingAgreements": true,
- "missingUserFields": true,
- "missingPaymentMethod": true
}
}
]
}string The user's email address | |
| username | string The user's myTurn.com username |
| memberId | string The user's member id within this organization. If passing forOrgType, the request will look for the user with this member id in any organization within the same organization type as the organization in the url. |
| query | string Either an email address, a username or a memberId |
| forOrgType | boolean If true, the query is run against all the organizations that have the same type as the organization in the url. |
{- "email": "string",
- "username": "string",
- "memberId": "string",
- "query": "string",
- "forOrgType": true
}"If a matching account exists, we will send a password reset to the address on file."| email required | string The user's email address |
| forOrgType | boolean If true, the query is run against all the organizations that have the same type as the organization in the url. |
{- "email": "string",
- "forOrgType": true
}"If a matching account exists, we will send a password reset to the address on file."| username required | string The user's myTurn.com username |
| forOrgType | boolean If true, the query is run against all the organizations that have the same type as the organization in the url. |
{- "username": "string",
- "forOrgType": true
}"OK"| memberId required | string The user's member id within this organization |
| forOrgType | boolean If true, the query is run against all the organizations that have the same type as the organization in the url. |
{- "memberId": "string",
- "forOrgType": true
}"OK"{- "username": "string",
- "lastName": "string",
- "firstName": "string",
- "displayName": "string",
- "emailAddress": "string",
- "expires_in": 0,
- "token_type": "Bearer",
- "access_token": "string",
- "roles": [
- "string"
], - "isAdmin": true,
- "membership": {
- "name": "string",
- "mayBorrow": true,
- "mayUseKiosk": true,
- "mayBorrowMax": 0,
- "expiration": "string",
- "isExpired": true,
- "missingAgreements": true,
- "missingUserFields": true,
- "missingPaymentMethod": true
}, - "organizations": [
- {
- "id": "string",
- "apiUrl": "string",
- "name": "string",
- "logo": "string",
- "selfServeEnabled": true,
- "membership": {
- "name": "string",
- "mayBorrow": true,
- "mayUseKiosk": true,
- "mayBorrowMax": 0,
- "expiration": "string",
- "isExpired": true,
- "missingAgreements": true,
- "missingUserFields": true,
- "missingPaymentMethod": true
}
}
]
}When called on an organization where the user is a member, returns the information about the user's membership in that organization. When called on a host that does not correspond to an organization, but the user logged in using the orgTypeId parameter (also on a host that doesn't correspond to an organization) it will give basic information. In both cases, it includes the list of organizations the user has memberships with.
{- "username": "string",
- "lastName": "string",
- "firstName": "string",
- "displayName": "string",
- "emailAddress": "string",
- "expires_in": 0,
- "token_type": "Bearer",
- "access_token": "string",
- "roles": [
- "string"
], - "isAdmin": true,
- "membership": {
- "name": "string",
- "mayBorrow": true,
- "mayUseKiosk": true,
- "mayBorrowMax": 0,
- "expiration": "string",
- "isExpired": true,
- "missingAgreements": true,
- "missingUserFields": true,
- "missingPaymentMethod": true
}, - "organizations": [
- {
- "id": "string",
- "apiUrl": "string",
- "name": "string",
- "logo": "string",
- "selfServeEnabled": true,
- "membership": {
- "name": "string",
- "mayBorrow": true,
- "mayUseKiosk": true,
- "mayBorrowMax": 0,
- "expiration": "string",
- "isExpired": true,
- "missingAgreements": true,
- "missingUserFields": true,
- "missingPaymentMethod": true
}
}
]
}[- {
- "organization": {
- "id": "string",
- "apiUrl": "string",
- "name": "string",
- "logo": "string",
- "selfServeEnabled": true,
- "membership": {
- "name": "string",
- "mayBorrow": true,
- "mayUseKiosk": true,
- "mayBorrowMax": 0,
- "expiration": "string",
- "isExpired": true,
- "missingAgreements": true,
- "missingUserFields": true,
- "missingPaymentMethod": true
}
}
}
]