Cowdidocs
API ReferenceLegal documents

Get a legal document

GET
/v1/legal-documents/{id}

Returns the current version of a legal document as Markdown. A label in brackets, such as [fee], stands in place of each value of an offer. A website shows this version to a reader who has no offer. The endpoint needs no authentication.

Path Parameters

id*string

Id of the legal document.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/legal-documents/flex-credit-terms"
{  "id": "flex-credit-terms",  "title": "Flex Credit purchase terms",  "version": "1.0-draft",  "effective_date": "2019-08-24",  "markdown": "# Flex Credit purchase terms"}
{  "code": "BAD_REQUEST",  "description": "Bad Request"}
{  "code": "UNAUTHORISED",  "description": "Unauthorised"}
{  "code": "FORBIDDEN",  "description": "Forbidden"}
{  "code": "BAD_REQUEST",  "description": "Invalid input"}
{  "code": "RATE_LIMIT_EXCEEDED",  "description": "Too Many Requests"}
{  "code": "INTERNAL_ERROR",  "description": "Internal Server Error"}