Skip to main content

Get contract by ID

GET 

https://api.publicsquare.com/contracts/:id

Get a contract by ID in the Account.

Permissions

  • business:read

Request

Path Parameters

    id stringrequired

Responses

OK

Schema
    idstringnullable

    Contract ID

    Example: doc_BK44jiqsyJvWK3xH7pMaPd6qK
    account_idstringnullable

    Account ID

    Example: acc_B518niGwGYKzig6vtrRVZGGGV
    productstringnullable

    Product

    Example: payments
    statusstringnullable

    Contract status

    Example: signed
    recipient_namestringnullable

    Recipient name of digital contract

    Example: John Smith
    recipient_emailstringnullable

    Recipient email of digital contract

    Example: john.smith@email.com
    recipient_urlstringnullable

    Contract URL for reviewing and signing of contract

    Example: https://contractsigningurl.com/
    created_atdate-timenullable

    Date contract was created

    Example: 2024-06-30T01:02:29.212Z
    modified_atdate-timenullable

    Date contract was modified

    Example: 2024-06-30T01:02:29.212Z

Authorization: X-API-KEY

name: X-API-KEYtype: apiKeyscopes: business:readdescription: Authorization by API Key inside request's X-API-KEY headerin: header
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.publicsquare.com/contracts/:id");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("X-API-KEY", "<X-API-KEY>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://api.publicsquare.com
Auth
Parameters
— pathrequired
ResponseClear

Click the Send API Request button above and see the response here!