Skip to main content

List Agreements

GET 

/agreements

Retrieves a paginated list of all agreements created by the authenticated client

Request

Query Parameters

    limit string

    Default value: 50

    The number of agreements to return. Max 100

    page string

    Default value: 1

    The page of agreements to return. Default 1

    order_by string

    Possible values: [desc, asc]

    The agreements are ordered by date in descending order by default.

    status string

    Possible values: [draft, pending, fulfilled, cancelled, generating, failed_to_generate, open]

    The status of the agreements to return.

    start_date date-time

    Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d+)?)?Z?$

    The earliest creation date of the agreements to return.

    end_date date-time

    Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d+)?)?Z?$

    The latest creation date of the agreements to return.

    lookup_key string

    The lookup key of the agreements to return

Responses

GET /agreements Successful response

Schema
    version stringrequired

    Possible values: [1.0]

    The version of the response schema

    result_type stringrequired

    Possible values: [paginated_list]

    A paginated list of the agreement resource.

    resource_type stringrequired

    Possible values: [agreement]

    Data contains the agreement resource.

    data object[]required

    The resource data

  • Array [
  • id cuidrequired

    The unique identifier of the agreement

    resource_type stringrequired

    Possible values: [agreement]

    test_mode booleanrequired

    Indicates if the agreement is created using a development client

    status stringrequired

    Possible values: [draft, pending, fulfilled, cancelled, generating, failed_to_generate, open]

    The status of the agreement

    cancellation_reason stringnullablerequired

    If the agreement is in a cancelled state, this will be a short description on the reason why, otherwise it will be null.

    theme object required
    oneOf

    string

    issuer objectrequired

    The issuer of the agreement

    name stringnullablerequired

    The name of the issuer. Required if no email is provided.

    email stringnullablerequired

    The email of the issuer. Required if agreemnt is configured to send emails.

    role stringrequired

    Possible values: [signer, approver, observer]

    The role of the issuer in the agreement process.

    participant_id cuid

    If the issuer is a signer or approver this is the ID of the related participant.

    signing_room_url urlnullablerequired

    The URL to the signing room for the issuer. Only available after the agreement has been finalized for signing.

    participants object required
    oneOf
  • Array [
  • string

  • ]
  • signing_groups object
    oneOf
  • Array [
  • string

  • ]
  • documents object
    original_documents objectrequired
    main object required

    The main document which will be signed.

    oneOf

    string

    attachments object
    oneOf
  • Array [
  • string

  • ]
  • signed_document object required

    The finalized and signed document.

    oneOf

    string

    signing_order objectrequired
    enabled booleanrequired
    grouped booleanrequired
    communication objectrequired
    send_emails booleanrequired
    default_locale object
    oneOf

    string

    metadata object
    lookup_key string

    A provided lookup key provided by you to help you identify the agreement.

    success_callback_url url

    A provided callback url to refer the participants back to post successful action.

    updated_at stringrequired

    UTC datetime ISO string

    created_at stringrequired

    UTC datetime ISO string

  • ]
  • pagination objectrequired

    Contains the pagination meta data

    limit int64required

    Possible values: <= 9007199254740991

    The maximum number of items per page

    total_pages int64required

    Possible values: <= 9007199254740991

    The total number of pages

    page int64required

    Possible values: <= 9007199254740991

    The current page number

    total_results int64required

    Possible values: <= 9007199254740991

    The total number of results

Loading...