Imports
The Imports routes of Amiril's HTTP API that an OAuth access token can call, with their parameters, request bodies and responses.
The workspace's trace-id extraction map: each entry names an id and the Langfuse trace-metadata field that carries it. Mapped ids land on every event at parse time.
Any access token can call this, read-only or full.
accessTokenAuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
The map; {} until configured
application/json- response
keys*curl -X GET 'https://api.amiril.ai/api/imports/trace-id-keys'{ "keys": { "property1": "string", "property2": "string" }}Distinct attribute keys on the environment's stored root events, across every kept import โ the suggestions the mapping editor offers.
Any access token can call this, read-only or full.
accessTokenAuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
Metadata keys seen, with counts and a sample value
application/json- response
candidates*array<>curl -X GET 'https://api.amiril.ai/api/imports/trace-metadata-candidates'{ "candidates": [ { "key": "string", "traces": 0, "distinct": 0, "agents": 0, "sample": "string" } ]}Any access token can call this, read-only or full.
accessTokenAuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
Imports, newest first
application/json- response
imports*array<>curl -X GET 'https://api.amiril.ai/api/imports'{ "imports": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "workspace": "string", "filename": "string", "kind": "upload", "status": "uploading", "dialect": "string", "declaredSizeBytes": 0, "actualSizeBytes": 0, "bytesConsumed": 0, "rowsParsed": 0, "rowsInserted": 0, "rowsQuarantined": 0, "zonelessTimestampCount": 0, "eventsByType": { "property1": 0, "property2": 0 }, "attempt": 0, "parserVersion": "string", "error": "string", "timezone": "string", "createdAt": "2019-08-24T14:15:22Z", "uploadedAt": "2019-08-24T14:15:22Z", "scoringStartedAt": "2019-08-24T14:15:22Z", "completedAt": "2019-08-24T14:15:22Z", "firstReadyAt": "2019-08-24T14:15:22Z", "removedAt": "2019-08-24T14:15:22Z" } ]}Creates the import row and a resumable upload session. PUT the file to uploadUrl, then confirm.
Needs a full access token. A read-only token is refused.
accessTokenAuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
application/json- body
filename*string1 <= length <= 300sizeBytes*integer0 < value <= 9007199254740991timezone?stringIANA zone applied to timestamps that carry none; defaults to UTC
1 <= length <= 64Import created; upload session ready
application/json- response
import*uploadUrl*stringuricurl -X POST 'https://api.amiril.ai/api/imports' \ -H 'Content-Type: application/json' \ -d '{ "filename": "string", "sizeBytes": 1}'{ "import": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "workspace": "string", "filename": "string", "kind": "upload", "status": "uploading", "dialect": "string", "declaredSizeBytes": 0, "actualSizeBytes": 0, "bytesConsumed": 0, "rowsParsed": 0, "rowsInserted": 0, "rowsQuarantined": 0, "zonelessTimestampCount": 0, "eventsByType": { "property1": 0, "property2": 0 }, "attempt": 0, "parserVersion": "string", "error": "string", "timezone": "string", "createdAt": "2019-08-24T14:15:22Z", "uploadedAt": "2019-08-24T14:15:22Z", "scoringStartedAt": "2019-08-24T14:15:22Z", "completedAt": "2019-08-24T14:15:22Z", "firstReadyAt": "2019-08-24T14:15:22Z", "removedAt": "2019-08-24T14:15:22Z" }, "uploadUrl": "http://example.com"}Verifies the object landed whole, marks the import uploaded, and enqueues parsing. Idempotent.
Needs a full access token. A read-only token is refused.
accessTokenAuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
id*string^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$uuidImport confirmed
application/json- response
id*string^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$uuidworkspace*stringfilename*stringkind*string"upload""stream"status*string"uploading""uploaded""parsing""scoring""completed""failed""streaming"dialect*string|nulldeclaredSizeBytes*numberactualSizeBytes*number|nullbytesConsumed*numberrowsParsed*numberrowsInserted*numberrowsQuarantined*numberzonelessTimestampCount*numbereventsByType*|nullattempt*numberparserVersion*string|nullerror*string|nulltimezone*stringcreatedAt*string^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$date-timeuploadedAt*|nullscoringStartedAt*|nullcompletedAt*|nullfirstReadyAt*|nullremovedAt*|nullcurl -X POST 'https://api.amiril.ai/api/imports/497f6eca-6276-4993-bfeb-53cbbbba6f08/confirm'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "workspace": "string", "filename": "string", "kind": "upload", "status": "uploading", "dialect": "string", "declaredSizeBytes": 0, "actualSizeBytes": 0, "bytesConsumed": 0, "rowsParsed": 0, "rowsInserted": 0, "rowsQuarantined": 0, "zonelessTimestampCount": 0, "eventsByType": { "property1": 0, "property2": 0 }, "attempt": 0, "parserVersion": "string", "error": "string", "timezone": "string", "createdAt": "2019-08-24T14:15:22Z", "uploadedAt": "2019-08-24T14:15:22Z", "scoringStartedAt": "2019-08-24T14:15:22Z", "completedAt": "2019-08-24T14:15:22Z", "firstReadyAt": "2019-08-24T14:15:22Z", "removedAt": "2019-08-24T14:15:22Z"}The dashboard polls this while an upload is parsing.
Any access token can call this, read-only or full.
accessTokenAuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
id*string^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$uuidCurrent import state
application/json- response
id*string^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$uuidworkspace*stringfilename*stringkind*string"upload""stream"status*string"uploading""uploaded""parsing""scoring""completed""failed""streaming"dialect*string|nulldeclaredSizeBytes*numberactualSizeBytes*number|nullbytesConsumed*numberrowsParsed*numberrowsInserted*numberrowsQuarantined*numberzonelessTimestampCount*numbereventsByType*|nullattempt*numberparserVersion*string|nullerror*string|nulltimezone*stringcreatedAt*string^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$date-timeuploadedAt*|nullscoringStartedAt*|nullcompletedAt*|nullfirstReadyAt*|nullremovedAt*|nullcurl -X GET 'https://api.amiril.ai/api/imports/497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "workspace": "string", "filename": "string", "kind": "upload", "status": "uploading", "dialect": "string", "declaredSizeBytes": 0, "actualSizeBytes": 0, "bytesConsumed": 0, "rowsParsed": 0, "rowsInserted": 0, "rowsQuarantined": 0, "zonelessTimestampCount": 0, "eventsByType": { "property1": 0, "property2": 0 }, "attempt": 0, "parserVersion": "string", "error": "string", "timezone": "string", "createdAt": "2019-08-24T14:15:22Z", "uploadedAt": "2019-08-24T14:15:22Z", "scoringStartedAt": "2019-08-24T14:15:22Z", "completedAt": "2019-08-24T14:15:22Z", "firstReadyAt": "2019-08-24T14:15:22Z", "removedAt": "2019-08-24T14:15:22Z"}Excludes the upload from the environment's data and re-projects from the remaining kept files. Events shared with other uploads survive; the file itself is kept.
Needs a full access token. A read-only token is refused.
accessTokenAuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
id*string^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$uuidImport marked removed; re-projection queued
application/json- response
id*string^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$uuidworkspace*stringfilename*stringkind*string"upload""stream"status*string"uploading""uploaded""parsing""scoring""completed""failed""streaming"dialect*string|nulldeclaredSizeBytes*numberactualSizeBytes*number|nullbytesConsumed*numberrowsParsed*numberrowsInserted*numberrowsQuarantined*numberzonelessTimestampCount*numbereventsByType*|nullattempt*numberparserVersion*string|nullerror*string|nulltimezone*stringcreatedAt*string^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$date-timeuploadedAt*|nullscoringStartedAt*|nullcompletedAt*|nullfirstReadyAt*|nullremovedAt*|nullcurl -X DELETE 'https://api.amiril.ai/api/imports/497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "workspace": "string", "filename": "string", "kind": "upload", "status": "uploading", "dialect": "string", "declaredSizeBytes": 0, "actualSizeBytes": 0, "bytesConsumed": 0, "rowsParsed": 0, "rowsInserted": 0, "rowsQuarantined": 0, "zonelessTimestampCount": 0, "eventsByType": { "property1": 0, "property2": 0 }, "attempt": 0, "parserVersion": "string", "error": "string", "timezone": "string", "createdAt": "2019-08-24T14:15:22Z", "uploadedAt": "2019-08-24T14:15:22Z", "scoringStartedAt": "2019-08-24T14:15:22Z", "completedAt": "2019-08-24T14:15:22Z", "firstReadyAt": "2019-08-24T14:15:22Z", "removedAt": "2019-08-24T14:15:22Z"}