Skip to content

Get Code Analysis Results by Version

Request

Returns code analysis test results for a specific test ID and version.

Security
basicAuth
Path
test_idstringrequired

The ID of the code analysis test

version_idstringrequired

The version number of the test results

Query
slugstring

Filter results by feature slug

support_typestring

Filter results by support type (y=supported, a=partial, n=not supported, u=unknown)

application_typestring

Filter results by application type (web, mobile, desktop). Only variants belonging to the specified application type will be included in the response.

Enum ValueDescription
web

Filter by web-based email clients

mobile

Filter by mobile email clients

desktop

Filter by desktop email clients

group_bystring

Group variants by their implementation notes. When set to 'notes', variants within each support level are grouped by their note content. The response structure changes: instead of VariantReference arrays, each support level (y/a/n/u) contains GroupedVariantsByNote objects with 'note' field and 'variants' array. A 'grouped_by' field is added to meta.

ValueDescription
notes

Group variants by their implementation notes

curl -i -X GET \
  -u '<username>:<password>' \
  'https://api.mailgun.net/v1/inspect/analyze/{test_id}/versions/{version_id}?slug=string&support_type=string&application_type=web&group_by=notes'

Responses

A 200 response

Bodyapplication/json
metaobject or null

Metadata including status and counts and support statistics

itemsobject(github.com-mailgun-inspect-internal-codeanalysis-TestResultItem)required

Test results including detected features and their support data

Response
{ "meta": { "application_support": {}, "count": 1, "inbox_provider_support": {}, "market_support": {}, "status": "Completed", "version": 2 }, "items": { "id": "67a654ba0f53254b9fdca3e2", "version": 2, "features": [] } }