appgram / docs
Dashboard

API REFERENCE

AI answers

Ask questions against published project content.

v1.0

AI

Ask a question about the project

Answers questions about the project using real features and data. In "home" context, provides marketing-oriented responses.

POST/portal/ask

Authorizations

None

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

Body

application/json
contextstring
languagestring
project_idstringrequired
querystringrequired

Responses

200

OK

400

Bad Request

500

Internal Server Error

POST /portal/ask
curl --request POST \
  --url 'https://api.appgram.dev/portal/ask' \
  --header 'Content-Type: application/json' \
  --data '{
  "context": "string",
  "language": "string",
  "project_id": "string",
  "query": "string"
}'
Response · 200
{
  "data": {
    "answer": "string",
    "blocked": true,
    "metadata": {},
    "mode": "string",
    "reason": "string",
    "show_user_support": true
  },
  "success": true
}

AI

Ask the help center

Answers questions using relevant help center articles as context (no auth required)

POST/portal/help/ask

Authorizations

None

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

Body

application/json
conversation_idstring
languagestring
max_resultsinteger
project_idstringrequired
querystringrequired
thresholdnumber

Responses

200

OK

400

Bad Request

500

Internal Server Error

POST /portal/help/ask
curl --request POST \
  --url 'https://api.appgram.dev/portal/help/ask' \
  --header 'Content-Type: application/json' \
  --data '{
  "conversation_id": "string",
  "language": "string",
  "max_results": 0,
  "project_id": "string",
  "query": "string",
  "threshold": 0
}'
Response · 200
{
  "data": {
    "answer": "string",
    "blocked": true,
    "conversation_id": "string",
    "metadata": {},
    "reason": "string",
    "show_user_support": true,
    "sources": [
      {
        "article_id": "string",
        "excerpt": "string",
        "flow_id": "string",
        "flow_slug": "string",
        "post_id": "string",
        "similarity": 0,
        "slug": "string",
        "title": "string",
        "type": "string"
      }
    ]
  },
  "success": true
}
—