Download OpenAPI specification:
API calls to authenticate the user. These calls are also included in other API documentation for convenience.
Logs in either against the organization resolved from the request host, or against a no-organization host with orgTypeId for network login. The unversioned login response includes both token details and the user's self-service permissions for the resolved organization. Each active membership includes missingIdentityVerification. When it is true, call the identity verification status endpoint. The membership.prepaidCardOnFile flag identifies a saved prepaid or unverified card rejected for securing item access, and membership.unableToVerifyCardOnFile flags that the saved card could not be verified (payment processor unreachable - transient, retry).
| 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 on a host that does not resolve to an organization, and only for organization types 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",
- "refresh_token": "string",
- "roles": [
- "string"
], - "isAdmin": true,
- "isSuperAdmin": true,
- "adminAccess": {
- "isAdmin": true,
- "isSuperAdmin": true,
- "locations": {
- "property1": {
- "loans": true,
- "inventory": true,
- "settings": true
}, - "property2": {
- "loans": true,
- "inventory": true,
- "settings": true
}
}
}, - "membership": {
- "name": "string",
- "membershipType": "string",
- "mayBorrow": true,
- "mayUseKiosk": true,
- "mayBorrowMax": 0,
- "expiration": "string",
- "isExpired": true,
- "missingAgreements": true,
- "missingAgreementsUrl": "string",
- "missingUserFields": true,
- "missingUserFieldsUrl": "string",
- "missingPaymentMethod": true,
- "missingPaymentMethodUrl": "string",
- "prepaidCardOnFile": true,
- "unableToVerifyCardOnFile": true,
- "missingIdentityVerification": true
}, - "organizations": [
- {
- "id": "string",
- "apiUrl": "string",
- "name": "string",
- "logo": "string",
- "enableKioskMode": true,
- "selfServiceEnabled": true,
- "reservationsEnabled": true,
- "membership": {
- "name": "string",
- "membershipType": "string",
- "mayBorrow": true,
- "mayUseKiosk": true,
- "mayBorrowMax": 0,
- "expiration": "string",
- "isExpired": true,
- "missingAgreements": true,
- "missingAgreementsUrl": "string",
- "missingUserFields": true,
- "missingUserFieldsUrl": "string",
- "missingPaymentMethod": true,
- "missingPaymentMethodUrl": "string",
- "prepaidCardOnFile": true,
- "unableToVerifyCardOnFile": true,
- "missingIdentityVerification": true
}
}
], - "reservationsEnabled": 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",
- "refresh_token": "string",
- "roles": [
- "string"
], - "isAdmin": true,
- "isSuperAdmin": true,
- "adminAccess": {
- "isAdmin": true,
- "isSuperAdmin": true,
- "locations": {
- "property1": {
- "loans": true,
- "inventory": true,
- "settings": true
}, - "property2": {
- "loans": true,
- "inventory": true,
- "settings": true
}
}
}, - "membership": {
- "name": "string",
- "membershipType": "string",
- "mayBorrow": true,
- "mayUseKiosk": true,
- "mayBorrowMax": 0,
- "expiration": "string",
- "isExpired": true,
- "missingAgreements": true,
- "missingAgreementsUrl": "string",
- "missingUserFields": true,
- "missingUserFieldsUrl": "string",
- "missingPaymentMethod": true,
- "missingPaymentMethodUrl": "string",
- "prepaidCardOnFile": true,
- "unableToVerifyCardOnFile": true,
- "missingIdentityVerification": true
}, - "organizations": [
- {
- "id": "string",
- "apiUrl": "string",
- "name": "string",
- "logo": "string",
- "enableKioskMode": true,
- "selfServiceEnabled": true,
- "reservationsEnabled": true,
- "membership": {
- "name": "string",
- "membershipType": "string",
- "mayBorrow": true,
- "mayUseKiosk": true,
- "mayBorrowMax": 0,
- "expiration": "string",
- "isExpired": true,
- "missingAgreements": true,
- "missingAgreementsUrl": "string",
- "missingUserFields": true,
- "missingUserFieldsUrl": "string",
- "missingPaymentMethod": true,
- "missingPaymentMethodUrl": "string",
- "prepaidCardOnFile": true,
- "unableToVerifyCardOnFile": true,
- "missingIdentityVerification": true
}
}
], - "reservationsEnabled": 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"Returns the current user's username, name, display name, email address, organization membership details when the request is scoped to an organization, admin access information, and reservation support for the current organization. Each active membership includes missingIdentityVerification. When it is true, call the identity verification status endpoint. The membership.prepaidCardOnFile flag identifies a saved prepaid or unverified card rejected for securing item access, and membership.unableToVerifyCardOnFile flags that the saved card could not be verified (payment processor unreachable - transient, retry).
{- "username": "string",
- "lastName": "string",
- "firstName": "string",
- "displayName": "string",
- "emailAddress": "string",
- "expires_in": 0,
- "token_type": "Bearer",
- "access_token": "string",
- "refresh_token": "string",
- "roles": [
- "string"
], - "isAdmin": true,
- "isSuperAdmin": true,
- "adminAccess": {
- "isAdmin": true,
- "isSuperAdmin": true,
- "locations": {
- "property1": {
- "loans": true,
- "inventory": true,
- "settings": true
}, - "property2": {
- "loans": true,
- "inventory": true,
- "settings": true
}
}
}, - "membership": {
- "name": "string",
- "membershipType": "string",
- "mayBorrow": true,
- "mayUseKiosk": true,
- "mayBorrowMax": 0,
- "expiration": "string",
- "isExpired": true,
- "missingAgreements": true,
- "missingAgreementsUrl": "string",
- "missingUserFields": true,
- "missingUserFieldsUrl": "string",
- "missingPaymentMethod": true,
- "missingPaymentMethodUrl": "string",
- "prepaidCardOnFile": true,
- "unableToVerifyCardOnFile": true,
- "missingIdentityVerification": true
}, - "organizations": [
- {
- "id": "string",
- "apiUrl": "string",
- "name": "string",
- "logo": "string",
- "enableKioskMode": true,
- "selfServiceEnabled": true,
- "reservationsEnabled": true,
- "membership": {
- "name": "string",
- "membershipType": "string",
- "mayBorrow": true,
- "mayUseKiosk": true,
- "mayBorrowMax": 0,
- "expiration": "string",
- "isExpired": true,
- "missingAgreements": true,
- "missingAgreementsUrl": "string",
- "missingUserFields": true,
- "missingUserFieldsUrl": "string",
- "missingPaymentMethod": true,
- "missingPaymentMethodUrl": "string",
- "prepaidCardOnFile": true,
- "unableToVerifyCardOnFile": true,
- "missingIdentityVerification": true
}
}
], - "reservationsEnabled": true
}Returns the current user's username, name, display name, email address, organization membership details when the request is scoped to an organization, admin access information, and reservation support for the current organization. When called without an organization context using a network-login token, the response may include kiosk-enabled organizations where the user has a membership. Each active membership includes missingIdentityVerification. When it is true, call the identity verification status endpoint for that organization. Each membership may include prepaidCardOnFile to identify a saved prepaid or unverified card rejected for securing item access, and unableToVerifyCardOnFile to flag that the saved card could not be verified (payment processor unreachable - transient, retry).
{- "username": "string",
- "lastName": "string",
- "firstName": "string",
- "displayName": "string",
- "emailAddress": "string",
- "expires_in": 0,
- "token_type": "Bearer",
- "access_token": "string",
- "refresh_token": "string",
- "roles": [
- "string"
], - "isAdmin": true,
- "isSuperAdmin": true,
- "adminAccess": {
- "isAdmin": true,
- "isSuperAdmin": true,
- "locations": {
- "property1": {
- "loans": true,
- "inventory": true,
- "settings": true
}, - "property2": {
- "loans": true,
- "inventory": true,
- "settings": true
}
}
}, - "membership": {
- "name": "string",
- "membershipType": "string",
- "mayBorrow": true,
- "mayUseKiosk": true,
- "mayBorrowMax": 0,
- "expiration": "string",
- "isExpired": true,
- "missingAgreements": true,
- "missingAgreementsUrl": "string",
- "missingUserFields": true,
- "missingUserFieldsUrl": "string",
- "missingPaymentMethod": true,
- "missingPaymentMethodUrl": "string",
- "prepaidCardOnFile": true,
- "unableToVerifyCardOnFile": true,
- "missingIdentityVerification": true
}, - "organizations": [
- {
- "id": "string",
- "apiUrl": "string",
- "name": "string",
- "logo": "string",
- "enableKioskMode": true,
- "selfServiceEnabled": true,
- "reservationsEnabled": true,
- "membership": {
- "name": "string",
- "membershipType": "string",
- "mayBorrow": true,
- "mayUseKiosk": true,
- "mayBorrowMax": 0,
- "expiration": "string",
- "isExpired": true,
- "missingAgreements": true,
- "missingAgreementsUrl": "string",
- "missingUserFields": true,
- "missingUserFieldsUrl": "string",
- "missingPaymentMethod": true,
- "missingPaymentMethodUrl": "string",
- "prepaidCardOnFile": true,
- "unableToVerifyCardOnFile": true,
- "missingIdentityVerification": true
}
}
], - "reservationsEnabled": true
}Returns kiosk-enabled organizations in the current myTurn Network where the authenticated user has a membership. Each result includes a short organization record and that user's membership details for the organization. When organization.membership.missingIdentityVerification is true, call the identity verification status endpoint for that organization. Read organization.membership.prepaidCardOnFile to determine whether that organization rejects the saved prepaid or unverified card for securing item access, and organization.membership.unableToVerifyCardOnFile for when the saved card could not be verified (payment processor unreachable - transient, retry).
[- {
- "organization": {
- "id": "string",
- "apiUrl": "string",
- "name": "string",
- "logo": "string",
- "enableKioskMode": true,
- "selfServiceEnabled": true,
- "reservationsEnabled": true,
- "membership": {
- "name": "string",
- "membershipType": "string",
- "mayBorrow": true,
- "mayUseKiosk": true,
- "mayBorrowMax": 0,
- "expiration": "string",
- "isExpired": true,
- "missingAgreements": true,
- "missingAgreementsUrl": "string",
- "missingUserFields": true,
- "missingUserFieldsUrl": "string",
- "missingPaymentMethod": true,
- "missingPaymentMethodUrl": "string",
- "prepaidCardOnFile": true,
- "unableToVerifyCardOnFile": true,
- "missingIdentityVerification": true
}
}
}
]