Retrieve your authorization credentials to access the API
https://cite.petal.org/api/auth
. You will need to send a POST request to the endpoint, with the following parameters:
your_email@example.com
and your_password
with your actual login credentials.
organization_ids
parameter.https://cite.petal.org/api/user/<id>/organization/list
endpoint. You will need to provide the bearer token you have just obtained from the previous step, as well as your user ID. Replace the sample values with your own in the code example below to get started.
name
and description
for each Organization in the list. The is_personal
field indicates whether the Organization is a personal one (created automatically upon user account creation). Using a combination of these fields, you should be able to identify the Organization you wish to work with.
Once you have noted down the unique ID (in the id
field), you are all set to begin to use our API for the correct Workspace.