Login
The Login call allows you to log in to the Fishbowl Server. This should be the first call as it will return the session information that will be used in all subsequent calls. The logged in user will determine the access rights for calls made during the session. Logout to close the session.
Related guide: Starting Fishbowl
ENDPOINTS
Logging in to Fishbowl
This logs the user in to Fishbowl and returns the list of Access Rights. The first time your Integrated App logs in, you'll need to approve the App in Fishbowl. If the user has enabled MFA (multi-factor authentication), the response will return HTTP 401 with a response header "MFA: Required". Resend the same request object with the mfaCode field included to log in.
Related guide: Approving Integrations
Attributes
-
appName stringThe name of your application.
-
appDescription stringA brief description of what your application does.
-
appId integerThe unique identifier for your integrated application. Use any number you want, but we recommend at least 4 digits in length.
-
username stringThe username of the user logging in.
-
password stringThe user's password.
-
mfaCode string optionalThe TOTP code from the user's authenticator app. Required if the user has enabled MFA (multi-factor authentication).
POST /api/login
curl --location \ --request POST '<YOUR SERVER>/api/login' \ --header 'Content-Type: application/json' \ --data-raw '{ "appName": "App Name", "appDescription": "my description", "appId": 12345, "username": "JohnSmith", "password": "password12345", "mfaCode": "123456" }'
RESPONSE
{ "token": "7dd6bcf7-5e92-4c25-86c9-54af4a831d54", "user": { "id": 5, "userFullName": "John Smith", "moduleAccessList": [ "Company", "Customer", "Payment Receipt", "Dashboard", "Product", "Home", "Property", "Custom Field", "Receiving", "Payment Gateway", "Calendar", "RMA", "Reports", "Data", "Sales Order Invoice", "Vendor", "Location Group", "UOM", "Part Label", "Schedule", "Memo", "Location" ], "serverVersion": "20.11.20201111" } }
Logging out of Fishbowl
This logs the user out of Fishbowl, ending the current session.
Attributes
No attributes.
POST /api/logout
curl --location --request POST '<YOUR SERVER>/api/logout' \ --header 'Authorization: Bearer <TOKEN>'
RESPONSE
{}