Shares API
4 endpoints — authenticate with a workspace access token via Authorization: Bearer. See the API introduction for base URLs, pagination, and rate limits.
List Shares
GET/api/shares/
List products. **Scopes**: `shares:read` `shares:write`
Query parameters
Filter by share ID.
Filter by workspace ID.
Filter by share name.
Filter on archived products.
Filter by visibility.
Page number, defaults to 1.
Size of a page, defaults to 10. Maximum is 100.
Sorting criterion. Several criteria can be used simultaneously and will be applied in order. Add a minus sign `-` before the criteria name to sort by descending order.
Filter by metadata key-value pairs using ``deepObject`` style, e.g. ``?metadata[key]=value``.
Returns 200 with PaginatedList_Share_.
curl -X GET \
https://api.rapidly.tech/api/shares/ \
-H "Authorization: Bearer $RAPIDLY_ACCESS_TOKEN"Create Share
POST/api/shares/
Create a share. **Scopes**: `shares:write`
Request body ShareCreate
Custom key-value attributes. Keys: string, max **40** chars. Values: string (max **500** chars), integer, float, or boolean. Limit: **50** pairs.
The name of the share.
The description of the share.
Publishing lifecycle state for storefront exposure.
List of available prices for this share. It should contain at most one static price (fixed, custom or free).
List of file IDs. Each one must be on the same workspace as the share, of type `product_media` and correctly uploaded.
List of custom fields to attach.
The ID of the workspace owning the share. **Required unless you use an workspace token.**
Returns 201 with Share.
curl -X POST \
https://api.rapidly.tech/api/shares/ \
-H "Authorization: Bearer $RAPIDLY_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'Get Share
GET/api/shares/{id}
Get a share by ID. **Scopes**: `shares:read` `shares:write`
Path parameters
The share ID.
Returns 200 with Share.
curl -X GET \
https://api.rapidly.tech/api/shares/{id} \
-H "Authorization: Bearer $RAPIDLY_ACCESS_TOKEN"Update Share
PATCH/api/shares/{id}
Update a share. **Scopes**: `shares:write`
Path parameters
The share ID.
Request body ShareUpdate
Custom key-value attributes. Keys: string, max **40** chars. Values: string (max **500** chars), integer, float, or boolean. Limit: **50** pairs.
Name
The description of the share.
Whether the share is archived. If `true`, the share won't be available for purchase anymore.
The visibility of the share.
List of available prices for this share. If you want to keep existing prices, include them in the list as an `ExistingSharePrice` object.
List of file IDs. Each one must be on the same workspace as the share, of type `product_media` and correctly uploaded.
Attached Custom Fields
Returns 200 with Share.
curl -X PATCH \
https://api.rapidly.tech/api/shares/{id} \
-H "Authorization: Bearer $RAPIDLY_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'