---
title: "[beta] List all Data Sharing Agreements"
method: GET
path: "/fleet/asset-sharing/agreements"
tags: ["Beta APIs"]
---

# \[beta\] List all Data Sharing Agreements

`GET /fleet/asset-sharing/agreements`

## Request

- Base URL: `https://api.samsara.com`
- URL: `https://api.samsara.com/fleet/asset-sharing/agreements`
- Auth: HTTP bearer

Returns every Data Sharing Agreement (DSA) your organization participates in, as either the provider or the recipient. Soft-deleted agreements are omitted. Narrow the results with the ids, statusIn, and roleIn filters, and page through large result sets with cursor pagination.

 <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).

To use this endpoint, select **Read Asset Sharing** under the Asset Sharing category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
 

 **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.

## Query parameters

- `ids` string[]
- `statusIn` string[]
- `roleIn` string[]
- `after` string

## Response `200`

OK response.

- AssetSharingAgreementsListAssetSharingAgreementsResponseBody
  - `data` AssetSharingAgreementResponseObjectResponseBody[], required: List of Data Sharing Agreements.
    - `acceptedAtTime` string: Time the agreement was accepted, in RFC 3339 format.
    - `acceptedByUserId` string: User ID who accepted the agreement (visible only to the accepting organization).
    - `canceledAtTime` string: Time the agreement was canceled, in RFC 3339 format.
    - `canceledByParty` 'provider' | 'recipient': Party that canceled the agreement. Valid values: `provider`, `recipient`
    - `canceledByUserId` string: User ID who canceled the agreement (visible only to the canceling party).
    - `createdAtTime` string, required: Time the agreement was created, in RFC 3339 format.
    - `createdByParty` 'provider' | 'recipient' | 'unknown', required: Party that created the agreement, determined from the authenticated caller. Older agreements default to provider. Returns unknown if the party cannot be determined. Valid values: `provider`, `recipient`, `unknown`
    - `createdByUserId` string: User ID who created the agreement (visible only to the creating organization).
    - `deletedByUserId` string: User ID who soft-deleted the agreement (visible only to the deleting organization).
    - `id` string, required: Unique identifier for the agreement.
    - `operator` 'provider' | 'recipient', required: Defines where the gateways will be located. Valid values: `provider`, `recipient`
    - `payer` 'provider' | 'recipient' | 'unknown', required: Party whose Asset Sharing license supports the agreement. Older agreements default to provider. Returns unknown if the party cannot be determined. Valid values: `provider`, `recipient`, `unknown`
    - `providerDataPackages` string[], required: List of data packages the provider will see.
    - `providerOrganizationId` string, required: ID of the organization that owns the assets shared under the agreement.
    - `recipientDataPackages` string[], required: List of data packages the recipient will see.
    - `recipientOrganizationId` string, required: ID of the organization that rents the assets from the provider.
    - `rejectedAtTime` string: Time the agreement was rejected, in RFC 3339 format.
    - `rejectedByUserId` string: User ID who rejected the agreement (visible only to the rejecting organization).
    - `status` 'pending' | 'accepted' | 'rejected' | 'canceled', required: The status of the agreement. Valid values: `pending`, `accepted`, `rejected`, `canceled`
    - `updatedAtTime` string, required: Time the agreement was last updated, in RFC 3339 format.
  - `pagination` GoaPaginationResponseResponseBody: Pagination parameters.
    - `endCursor` string, required: Cursor identifier representing the last element in the response. This value should be used in conjunction with a subsequent request's 'after' query parameter. This may be an empty string if there are no more pages left to view.
    - `hasNextPage` boolean, required: True if there are more pages of results immediately available after this endCursor.

## Other responses

- `401`: Unauthorized response.
- `404`: Not Found response.
- `405`: Method Not Allowed response.
- `413`: Content Too Large response.
- `429`: Too Many Requests response.
- `500`: Internal Server Error response.
- `501`: Not Implemented response.
- `502`: Bad Gateway response.
- `503`: Service Unavailable response.
- `504`: Gateway Timeout response.
- `default`: Bad Request response.

---

[API](https://skmtc.dev/samsara/apis/samsara-api.md) - [All operations](https://skmtc.dev/samsara/apis/samsara-api/llms.txt) - [OpenAPI document](https://skmtc.dev/samsara/apis/samsara-api/revisions/a9e35d4999be?raw)
