Legal

For instructions on how to authenticate to use this endpoint, see API overview.

Endpoints

GET
POST
GET
GET

Create legal documents

Required API key scopes

legal_document:write

Request parameters

  • document_type
  • company_name
    string
  • company_address
    string
  • representative_email
    string

Response


Example request

POST /api/organizations/:organization_id/legal_documents
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl
-H 'Content-Type: application/json'\
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/organizations/:organization_id/legal_documents/\
-d document_type=undefined,\
-d company_name="string",\
-d company_address="string",\
-d representative_email="string"

Example response

Status 201
RESPONSE
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"document_type": "string",
"company_name": "string",
"representative_email": "string",
"status": "string",
"created_by": {
"first_name": "string",
"email": "string"
},
"created_at": "2019-08-24T14:15:22Z"
}


Community questions

Questions about this page? or post a community question.