Gerri API

Organization

Endpoints for retrieving and updating the current organization (name and default reviewer).


List organizations

GET
https://api.gerri.commonpaper.com
/v1/organizations

Lists all organizations the authenticated user belongs to, ordered by created_at descending (newest first). Use an organization id from this list as organization_id on nested routes.

List organizations › Headers

Authorization
​string · required

The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

List organizations › Responses

A list of organizations for the authenticated user


Retrieve organization

GET
https://api.gerri.commonpaper.com
/v1/organizations/{organization_id}

Returns the organization specified in the path. Includes name, ingestion_email_address (read-only), default_reviewer_id, default_reviewer_email, and timestamps.

Retrieve organization › path Parameters

organization_id
​string · uuid · required

Organization id

Retrieve organization › Headers

Authorization
​string · required

The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Retrieve organization › Responses

The current organization


Update organization

PATCH
https://api.gerri.commonpaper.com
/v1/organizations/{organization_id}

Updates the organization specified in the path. Send any of name or default_reviewer_id. default_reviewer_id must refer to an available reviewer for the organization.

Update organization › path Parameters

organization_id
​string · uuid · required

Organization id

Update organization › Headers

Authorization
​string · required

The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Update organization › Request Body

name
​string · minLength: 1

New name for the organization. Omit this field to leave the name unchanged; if sent, the value must be a non-empty string.

default_reviewer_id
​string · uuid · minLength: 1 · pattern: ^[0-9a-fA-F]{8}-[0-9…

User id of the new default reviewer; must be an available reviewer for the organization. Omit this field to leave the reviewer unchanged; if sent, the value must be a canonical UUID string (8-4-4-4-12 hex digits).

Update organization › Responses

Updated organization