appgram / docs
Dashboard

API REFERENCE

Forms

Create contact forms and collect submissions.

v1.0
16 endpointsAuthentication →

Forms

Get submission overview

Retrieve comprehensive submission statistics for a project (admin only)

Required API key scope: forms:view.

GET/api/v1/contact-forms/overview

Authorizations

x-api-key (header)required

Request examples show the credential location. Use a server-side key with the permissions required by this operation.

Query parameters

project_idstringquery

Responses

200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

500

Internal Server Error

GET /api/v1/contact-forms/overview
curl --request GET \
  --url 'https://api.appgram.dev/api/v1/contact-forms/overview' \
  --header 'x-api-key: <api-key>'
Response · 200
{
  "data": {},
  "success": true
}

Forms

Create contact form

Create a new contact form with custom fields and settings

Required API key scope: settings:manage.

POST/api/v1/projects/{id}/contact-forms

Authorizations

x-api-key (header)required

Request examples show the credential location. Use a server-side key with the permissions required by this operation.

Path parameters

idstringpathrequired

Body

application/json
descriptionstring
email_recipientstringrequired
email_subjectstring
fieldsarrayrequired
integrationobject
namestringrequired
page_idstring
submit_button_textstring
success_messagestring

Responses

201

Created

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

POST /api/v1/projects/{id}/contact-forms
curl --request POST \
  --url 'https://api.appgram.dev/api/v1/projects/{id}/contact-forms' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "string",
  "email_recipient": "string",
  "email_subject": "string",
  "fields": [
    {
      "default": "string",
      "id": "string",
      "label": "string",
      "options": [
        "string"
      ],
      "placeholder": "string",
      "required": true,
      "type": "checkbox",
      "validation": {
        "max_length": 0,
        "min_length": 0,
        "pattern": "string"
      }
    }
  ],
  "integration": {
    "ai_reply": {
      "ask_clarifying": true,
      "enabled": true,
      "format": "string",
      "ground_in_articles": true,
      "instructions": "string",
      "language": "string",
      "length": "string",
      "mode": "auto",
      "persona": "string",
      "signoff": "string",
      "tone": "string"
    },
    "field_mappings": {},
    "type": "string"
  },
  "name": "string",
  "page_id": "string",
  "submit_button_text": "string",
  "success_message": "string"
}'
Response · 201
{
  "data": {
    "contact_form": {
      "created_at": "1970-01-01T00:00:00.000Z",
      "description": "string",
      "email_recipient": "string",
      "email_subject": "string",
      "enabled": true,
      "fields": [
        {}
      ],
      "id": "string",
      "integration": {
        "field_mappings": {},
        "type": "string"
      },
      "name": "string",
      "submit_button_text": "string",
      "success_message": "string",
      "updated_at": "1970-01-01T00:00:00.000Z"
    }
  },
  "success": true
}

Forms

Get form submissions

Retrieve all contact form submissions for a project (admin only)

Required API key scope: forms:view.

GET/api/v1/projects/{id}/contact-forms/submissions

Authorizations

x-api-key (header)required

Request examples show the credential location. Use a server-side key with the permissions required by this operation.

Path parameters

idstringpathrequired

Query parameters

limitstringquery
offsetstringquery

Responses

200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

500

Internal Server Error

GET /api/v1/projects/{id}/contact-forms/submissions
curl --request GET \
  --url 'https://api.appgram.dev/api/v1/projects/{id}/contact-forms/submissions' \
  --header 'x-api-key: <api-key>'
Response · 200
{
  "data": {
    "pagination": {
      "limit": 0,
      "offset": 0,
      "total": 0
    },
    "submissions": [
      {
        "anonymized_ip": "string",
        "data": {},
        "email_sent": true,
        "form_id": "string",
        "id": "string",
        "processed_at": "1970-01-01T00:00:00.000Z",
        "project_id": "string",
        "submitted_at": "1970-01-01T00:00:00.000Z"
      }
    ]
  },
  "success": true
}

Forms

Get contact form

Retrieve a single contact form configuration and its submission statistics

Required API key scope: forms:view or forms:manage.

GET/api/v1/projects/{id}/contact-forms/{formId}

Authorizations

x-api-key (header)required

Request examples show the credential location. Use a server-side key with the permissions required by this operation.

Path parameters

idstringpathrequired
formIdstringpathrequired

Responses

200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

GET /api/v1/projects/{id}/contact-forms/{formId}
curl --request GET \
  --url 'https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}' \
  --header 'x-api-key: <api-key>'
Response · 200
{
  "data": {
    "contact_form": {
      "created_at": "1970-01-01T00:00:00.000Z",
      "description": "string",
      "email_recipient": "string",
      "email_subject": "string",
      "enabled": true,
      "fields": [
        {}
      ],
      "id": "string",
      "integration": {
        "field_mappings": {},
        "type": "string"
      },
      "name": "string",
      "submit_button_text": "string",
      "success_message": "string",
      "updated_at": "1970-01-01T00:00:00.000Z"
    },
    "recent_submissions": [
      {
        "anonymized_ip": "string",
        "data": {},
        "email_sent": true,
        "form_id": "string",
        "id": "string",
        "processed_at": "1970-01-01T00:00:00.000Z",
        "project_id": "string",
        "submitted_at": "1970-01-01T00:00:00.000Z"
      }
    ],
    "submission_count": 0
  },
  "success": true
}

Forms

Update contact form

Update an existing contact form's configuration

Required API key scope: settings:manage.

PUT/api/v1/projects/{id}/contact-forms/{formId}

Authorizations

x-api-key (header)required

Request examples show the credential location. Use a server-side key with the permissions required by this operation.

Path parameters

idstringpathrequired
formIdstringpathrequired

Body

application/json
descriptionstring
email_recipientstring
email_subjectstring
enabledboolean
fieldsarray
integrationobject
namestring
submit_button_textstring
success_messagestring

Responses

200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

PUT /api/v1/projects/{id}/contact-forms/{formId}
curl --request PUT \
  --url 'https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "string",
  "email_recipient": "string",
  "email_subject": "string",
  "enabled": true,
  "fields": [
    {
      "default": "string",
      "id": "string",
      "label": "string",
      "options": [
        "string"
      ],
      "placeholder": "string",
      "required": true,
      "type": "checkbox",
      "validation": {
        "max_length": 0,
        "min_length": 0,
        "pattern": "string"
      }
    }
  ],
  "integration": {
    "ai_reply": {
      "ask_clarifying": true,
      "enabled": true,
      "format": "string",
      "ground_in_articles": true,
      "instructions": "string",
      "language": "string",
      "length": "string",
      "mode": "auto",
      "persona": "string",
      "signoff": "string",
      "tone": "string"
    },
    "field_mappings": {},
    "type": "string"
  },
  "name": "string",
  "submit_button_text": "string",
  "success_message": "string"
}'
Response · 200
{
  "data": {
    "updated_at": "1970-01-01T00:00:00.000Z"
  },
  "success": true
}

Forms

Delete contact form

Delete a contact form and remove it from project customization

Required API key scope: settings:manage.

DELETE/api/v1/projects/{id}/contact-forms/{formId}

Authorizations

x-api-key (header)required

Request examples show the credential location. Use a server-side key with the permissions required by this operation.

Path parameters

idstringpathrequired
formIdstringpathrequired

Responses

204

No Content

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

DELETE /api/v1/projects/{id}/contact-forms/{formId}
curl --request DELETE \
  --url 'https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}' \
  --header 'x-api-key: <api-key>'

Forms

Get submissions by form

Retrieve contact form submissions for a specific form (admin only)

Required API key scope: forms:view.

GET/api/v1/projects/{id}/contact-forms/{formId}/submissions

Authorizations

x-api-key (header)required

Request examples show the credential location. Use a server-side key with the permissions required by this operation.

Path parameters

idstringpathrequired
formIdstringpathrequired

Query parameters

limitstringquery
offsetstringquery

Responses

200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

500

Internal Server Error

GET /api/v1/projects/{id}/contact-forms/{formId}/submissions
curl --request GET \
  --url 'https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}/submissions' \
  --header 'x-api-key: <api-key>'
Response · 200
{
  "data": {
    "pagination": {
      "limit": 0,
      "offset": 0,
      "total": 0
    },
    "submissions": [
      {
        "anonymized_ip": "string",
        "data": {},
        "email_sent": true,
        "form_id": "string",
        "id": "string",
        "processed_at": "1970-01-01T00:00:00.000Z",
        "project_id": "string",
        "submitted_at": "1970-01-01T00:00:00.000Z"
      }
    ]
  },
  "success": true
}

Forms

Submit contact form

Submit a contact form with user data (public endpoint, no authentication required)

POST/api/v1/projects/{id}/contact-forms/{formId}/submit

Authorizations

None

No management API key is required. Supply the project context and any customer credential listed in this operation.

Path parameters

idstringpathrequired
formIdstringpathrequired

Body

application/json
attachmentsarray
dataobjectrequired
form_idstringrequired

Responses

200

OK

400

Bad Request

POST /api/v1/projects/{id}/contact-forms/{formId}/submit
curl --request POST \
  --url 'https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}/submit' \
  --header 'Content-Type: application/json' \
  --data '{
  "attachments": [
    {
      "mime_type": "string",
      "name": "string",
      "size": 0,
      "url": "string"
    }
  ],
  "data": {},
  "form_id": "string"
}'
Response · 200
{
  "data": {
    "message": "string",
    "success": true
  },
  "success": true
}

Forms

Track form view

Track when a contact form is viewed (for analytics)

POST/api/v1/projects/{id}/contact-forms/{formId}/view

Authorizations

None

No management API key is required. Supply the project context and any customer credential listed in this operation.

Path parameters

idstringpathrequired
formIdstringpathrequired

Responses

200

OK

400

Bad Request

POST /api/v1/projects/{id}/contact-forms/{formId}/view
curl --request POST \
  --url 'https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}/view'
Response · 200
{
  "data": {
    "tracked": true
  },
  "success": true
}

Forms

Get support forms

Retrieve all support forms configured for a project

Required API key scope: settings:manage.

GET/api/v1/projects/{id}/support-forms

Authorizations

x-api-key (header)required

Request examples show the credential location. Use a server-side key with the permissions required by this operation.

Path parameters

idstringpathrequired

Responses

200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

GET /api/v1/projects/{id}/support-forms
curl --request GET \
  --url 'https://api.appgram.dev/api/v1/projects/{id}/support-forms' \
  --header 'x-api-key: <api-key>'
Response · 200
{
  "data": {
    "support_forms": {}
  },
  "success": true
}

Forms

Create support form

Create a new support form with custom fields and settings

Required API key scope: settings:manage.

POST/api/v1/projects/{id}/support-forms

Authorizations

x-api-key (header)required

Request examples show the credential location. Use a server-side key with the permissions required by this operation.

Path parameters

idstringpathrequired

Body

application/json
descriptionstring
fieldsarrayrequired
form_idstring
namestringrequired
submit_button_textstring
success_messagestring

Responses

201

Created

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

POST /api/v1/projects/{id}/support-forms
curl --request POST \
  --url 'https://api.appgram.dev/api/v1/projects/{id}/support-forms' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "string",
  "fields": [
    {
      "default": "string",
      "id": "string",
      "label": "string",
      "options": [
        "string"
      ],
      "placeholder": "string",
      "required": true,
      "type": "checkbox",
      "validation": {
        "max_length": 0,
        "min_length": 0,
        "pattern": "string"
      }
    }
  ],
  "form_id": "string",
  "name": "string",
  "submit_button_text": "string",
  "success_message": "string"
}'
Response · 201
{
  "data": {
    "support_form": {
      "created_at": "1970-01-01T00:00:00.000Z",
      "description": "string",
      "enable_ai_summary": true,
      "enabled": true,
      "fields": [
        {}
      ],
      "id": "string",
      "name": "string",
      "submit_button_text": "string",
      "success_message": "string",
      "updated_at": "1970-01-01T00:00:00.000Z"
    }
  },
  "success": true
}

Forms

Get support form

Retrieve a single support form configuration

Required API key scope: settings:view or settings:manage.

GET/api/v1/projects/{id}/support-forms/{formId}

Authorizations

x-api-key (header)required

Request examples show the credential location. Use a server-side key with the permissions required by this operation.

Path parameters

idstringpathrequired
formIdstringpathrequired

Responses

200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

GET /api/v1/projects/{id}/support-forms/{formId}
curl --request GET \
  --url 'https://api.appgram.dev/api/v1/projects/{id}/support-forms/{formId}' \
  --header 'x-api-key: <api-key>'
Response · 200
{
  "data": {
    "support_form": {
      "created_at": "1970-01-01T00:00:00.000Z",
      "description": "string",
      "enable_ai_summary": true,
      "enabled": true,
      "fields": [
        {}
      ],
      "id": "string",
      "name": "string",
      "submit_button_text": "string",
      "success_message": "string",
      "updated_at": "1970-01-01T00:00:00.000Z"
    }
  },
  "success": true
}

Forms

Update support form

Update an existing support form's configuration

Required API key scope: settings:manage.

PUT/api/v1/projects/{id}/support-forms/{formId}

Authorizations

x-api-key (header)required

Request examples show the credential location. Use a server-side key with the permissions required by this operation.

Path parameters

idstringpathrequired
formIdstringpathrequired

Body

application/json
descriptionstring
enabledboolean
fieldsarray
namestring
submit_button_textstring
success_messagestring

Responses

200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

PUT /api/v1/projects/{id}/support-forms/{formId}
curl --request PUT \
  --url 'https://api.appgram.dev/api/v1/projects/{id}/support-forms/{formId}' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "string",
  "enabled": true,
  "fields": [
    {
      "default": "string",
      "id": "string",
      "label": "string",
      "options": [
        "string"
      ],
      "placeholder": "string",
      "required": true,
      "type": "checkbox",
      "validation": {
        "max_length": 0,
        "min_length": 0,
        "pattern": "string"
      }
    }
  ],
  "name": "string",
  "submit_button_text": "string",
  "success_message": "string"
}'
Response · 200
{
  "data": {
    "support_form": {
      "created_at": "1970-01-01T00:00:00.000Z",
      "description": "string",
      "enable_ai_summary": true,
      "enabled": true,
      "fields": [
        {}
      ],
      "id": "string",
      "name": "string",
      "submit_button_text": "string",
      "success_message": "string",
      "updated_at": "1970-01-01T00:00:00.000Z"
    }
  },
  "success": true
}

Forms

Delete support form

Delete a support form and remove it from project customization

Required API key scope: settings:manage.

DELETE/api/v1/projects/{id}/support-forms/{formId}

Authorizations

x-api-key (header)required

Request examples show the credential location. Use a server-side key with the permissions required by this operation.

Path parameters

idstringpathrequired
formIdstringpathrequired

Responses

204

No Content

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

DELETE /api/v1/projects/{id}/support-forms/{formId}
curl --request DELETE \
  --url 'https://api.appgram.dev/api/v1/projects/{id}/support-forms/{formId}' \
  --header 'x-api-key: <api-key>'

Forms

Submit support form

Submit a support form with user data and create a support request (public endpoint, no authentication required)

POST/api/v1/projects/{id}/support-forms/{formId}/submit

Authorizations

None

No management API key is required. Supply the project context and any customer credential listed in this operation.

Path parameters

idstringpathrequired
formIdstringpathrequired

Body

application/json
dataobjectrequired
descriptionstringrequired
form_idstringrequired
subjectstringrequired
user_emailstring
user_namestring

Responses

201

Created

400

Bad Request

500

Internal Server Error

POST /api/v1/projects/{id}/support-forms/{formId}/submit
curl --request POST \
  --url 'https://api.appgram.dev/api/v1/projects/{id}/support-forms/{formId}/submit' \
  --header 'Content-Type: application/json' \
  --data '{
  "data": {},
  "description": "string",
  "form_id": "string",
  "subject": "string",
  "user_email": "string",
  "user_name": "string"
}'
Response · 201
{
  "data": {
    "access_token": "string",
    "attachments": [
      {
        "mime_type": "string",
        "name": "string",
        "size": 0,
        "url": "string"
      }
    ],
    "category": "account_issue",
    "created_at": "1970-01-01T00:00:00.000Z",
    "description": "string",
    "id": "string",
    "magic_link": "string",
    "message_count": 0,
    "messages": [
      {
        "attachments": [],
        "author": {},
        "author_name": "string",
        "content": "string",
        "created_at": "1970-01-01T00:00:00.000Z",
        "help_articles": [],
        "id": "string",
        "is_from_user": true,
        "support_request_id": "string",
        "updated_at": "1970-01-01T00:00:00.000Z"
      }
    ],
    "project_id": "string",
    "resolved_at": "1970-01-01T00:00:00.000Z",
    "source": "string",
    "status": "closed",
    "subject": "string",
    "updated_at": "1970-01-01T00:00:00.000Z",
    "user_email": "string",
    "user_name": "string"
  },
  "success": true
}

Forms

Get a contact form

Retrieve a contact form definition for rendering on public pages

GET/portal/contact-forms/{formId}

Authorizations

None

No management API key is required. Supply the project context and any customer credential listed in this operation.

Path parameters

formIdstringpathrequired

Query parameters

project_idstringquery

Responses

200

OK

400

Bad Request

404

Not Found

500

Internal Server Error

GET /portal/contact-forms/{formId}
curl --request GET \
  --url 'https://api.appgram.dev/portal/contact-forms/{formId}?project_id=<project_id>'
Response · 200
{
  "data": {
    "contact_form": {
      "created_at": "1970-01-01T00:00:00.000Z",
      "description": "string",
      "email_recipient": "string",
      "email_subject": "string",
      "enabled": true,
      "fields": [
        {}
      ],
      "id": "string",
      "integration": {
        "field_mappings": {},
        "type": "string"
      },
      "name": "string",
      "submit_button_text": "string",
      "success_message": "string",
      "updated_at": "1970-01-01T00:00:00.000Z"
    }
  },
  "success": true
}
—