appgram / docs
Dashboard

API REFERENCE

Support

Create support requests and manage customer conversations.

v1.0

Support

Add a message as an end user

Add a message to a support request, verifying the ticket belongs to the external user

POST/api/v1/support-requests/{id}/messages/user/{externalUserId}

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
externalUserIdstringpathrequired

Body

application/json
attachmentsarray
contentstringrequired
help_article_idsarray

Responses

201

Created

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

POST /api/v1/support-requests/{id}/messages/user/{externalUserId}
curl --request POST \
  --url 'https://api.appgram.dev/api/v1/support-requests/{id}/messages/user/{externalUserId}' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "attachments": [
    {
      "mime_type": "string",
      "name": "string",
      "size": 0,
      "url": "string"
    }
  ],
  "content": "string",
  "help_article_ids": [
    "string"
  ]
}'
Response · 201
{
  "data": {
    "attachments": [
      {
        "mime_type": "string",
        "name": "string",
        "size": 0,
        "url": "string"
      }
    ],
    "author": {
      "avatar_url": "string",
      "id": "string"
    },
    "author_name": "string",
    "content": "string",
    "created_at": "1970-01-01T00:00:00.000Z",
    "help_articles": [
      {
        "article_type": "faq",
        "author": {},
        "author_user_id": "string",
        "content": "string",
        "created_at": "1970-01-01T00:00:00.000Z",
        "excerpt": "string",
        "flow": {},
        "flow_id": "string",
        "id": "string",
        "is_published": true,
        "locale": "string",
        "published_at": "1970-01-01T00:00:00.000Z",
        "seo_description": "string",
        "seo_noindex": true,
        "seo_og_image_url": "string",
        "seo_title": "string",
        "slug": "string",
        "sort_order": 0,
        "tags": [],
        "title": "string",
        "translation_group_id": "string",
        "translations": [],
        "updated_at": "1970-01-01T00:00:00.000Z",
        "url": "string"
      }
    ],
    "id": "string",
    "is_from_user": true,
    "support_request_id": "string",
    "updated_at": "1970-01-01T00:00:00.000Z"
  },
  "success": true
}

Support

Create support request

Create a new customer support request from the public portal

POST/portal/support-requests

Authorizations

None

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

Body

application/json
anon_idstring
attachmentsarray
descriptionstringrequired
external_user_idstring
form_dataobject
form_idstring
project_idstringrequired
subjectstring
user_emailstring
user_metadataobject
user_namestring

Responses

201

Created

400

Bad Request

POST /portal/support-requests
curl --request POST \
  --url 'https://api.appgram.dev/portal/support-requests' \
  --header 'Content-Type: application/json' \
  --data '{
  "anon_id": "string",
  "attachments": [
    {
      "mime_type": "string",
      "name": "string",
      "size": 0,
      "url": "string"
    }
  ],
  "description": "string",
  "external_user_id": "string",
  "form_data": {},
  "form_id": "string",
  "project_id": "string",
  "subject": "string",
  "user_email": "string",
  "user_metadata": {},
  "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
}

Support

List the requester's support requests

Get all support requests for the authenticated user (requires session token)

GET/portal/support-requests/my-requests

Authorizations

None

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

Responses

200

OK

401

Unauthorized

500

Internal Server Error

GET /portal/support-requests/my-requests
curl --request GET \
  --url 'https://api.appgram.dev/portal/support-requests/my-requests'
Response · 200
{
  "data": [
    {
      "attachments": [
        {}
      ],
      "category": "account_issue",
      "created_at": "1970-01-01T00:00:00.000Z",
      "description": "string",
      "id": "string",
      "message_count": 0,
      "messages": [
        {}
      ],
      "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
}

Support

Send a support sign-in link

Send an email with a magic link to access a support request

POST/portal/support-requests/send-magic-link

Authorizations

None

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

Body

application/json
project_idstringrequired
user_emailstringrequired

Responses

200

OK

400

Bad Request

POST /portal/support-requests/send-magic-link
curl --request POST \
  --url 'https://api.appgram.dev/portal/support-requests/send-magic-link' \
  --header 'Content-Type: application/json' \
  --data '{
  "project_id": "string",
  "user_email": "string"
}'
Response · 200
{
  "data": {
    "message": "string"
  },
  "success": true
}

Support

Get support request

Get a specific support request by ID using access token

GET/portal/support-requests/{id}

Authorizations

None

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

Path parameters

idstringpathrequired

Query parameters

tokenstringquery

Responses

200

OK

401

Unauthorized

404

Not Found

GET /portal/support-requests/{id}
curl --request GET \
  --url 'https://api.appgram.dev/portal/support-requests/{id}'
Response · 200
{
  "data": {
    "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",
    "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
}

Support

Get support request messages

Get all messages for a specific support request

GET/portal/support-requests/{id}/messages

Authorizations

None

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

Path parameters

idstringpathrequired

Query parameters

tokenstringquery

Responses

200

OK

401

Unauthorized

500

Internal Server Error

GET /portal/support-requests/{id}/messages
curl --request GET \
  --url 'https://api.appgram.dev/portal/support-requests/{id}/messages'
Response · 200
{
  "data": [
    {
      "attachments": [
        {}
      ],
      "author": {
        "avatar_url": "string",
        "id": "string"
      },
      "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"
    }
  ],
  "success": true
}

Support

Add message to support request

Add a new message to an existing support request

POST/portal/support-requests/{id}/messages

Authorizations

None

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

Path parameters

idstringpathrequired

Query parameters

tokenstringquery

Body

application/json
attachmentsarray
contentstringrequired
help_article_idsarray

Responses

201

Created

400

Bad Request

401

Unauthorized

500

Internal Server Error

POST /portal/support-requests/{id}/messages
curl --request POST \
  --url 'https://api.appgram.dev/portal/support-requests/{id}/messages' \
  --header 'Content-Type: application/json' \
  --data '{
  "attachments": [
    {
      "mime_type": "string",
      "name": "string",
      "size": 0,
      "url": "string"
    }
  ],
  "content": "string",
  "help_article_ids": [
    "string"
  ]
}'
Response · 201
{
  "data": {
    "attachments": [
      {
        "mime_type": "string",
        "name": "string",
        "size": 0,
        "url": "string"
      }
    ],
    "author": {
      "avatar_url": "string",
      "id": "string"
    },
    "author_name": "string",
    "content": "string",
    "created_at": "1970-01-01T00:00:00.000Z",
    "help_articles": [
      {
        "article_type": "faq",
        "author": {},
        "author_user_id": "string",
        "content": "string",
        "created_at": "1970-01-01T00:00:00.000Z",
        "excerpt": "string",
        "flow": {},
        "flow_id": "string",
        "id": "string",
        "is_published": true,
        "locale": "string",
        "published_at": "1970-01-01T00:00:00.000Z",
        "seo_description": "string",
        "seo_noindex": true,
        "seo_og_image_url": "string",
        "seo_title": "string",
        "slug": "string",
        "sort_order": 0,
        "tags": [],
        "title": "string",
        "translation_group_id": "string",
        "translations": [],
        "updated_at": "1970-01-01T00:00:00.000Z",
        "url": "string"
      }
    ],
    "id": "string",
    "is_from_user": true,
    "support_request_id": "string",
    "updated_at": "1970-01-01T00:00:00.000Z"
  },
  "success": true
}
—