MemNexus
Reference

Artifacts API

Artifact storage and retrieval endpoints

Artifact storage and retrieval endpoints

GET /api/artifacts

List artifacts

Query parameters:

ParameterTypeRequiredDescription
limitintegerNoMaximum number of artifacts to return
offsetintegerNoNumber of artifacts to skip
memoryIdstringNoFilter by memory ID
conversationIdstringNoFilter by conversation ID
typestringNoFilter by artifact type

Response: 200 OK

FieldTypeRequiredDescription
dataArtifact[]No
countintegerNo

Example:

curl -X GET "https://api.memnexus.ai/api/artifacts" \
  -H "Authorization: Bearer cmk_live_xxx.yyy"

POST /api/artifacts

Create artifact

Request body:

FieldTypeRequiredDescription
contentstringYesArtifact content
typestringYesArtifact type (e.g., note, document, code)
namestringNoArtifact name
descriptionstringNoArtifact description
memoryIdstringNoAssociated memory ID
conversationIdstringNoAssociated conversation ID
metadataobjectNoAdditional metadata

Response: 201 Created

FieldTypeRequiredDescription
dataArtifactNo

Example:

curl -X POST "https://api.memnexus.ai/api/artifacts" \
  -H "Authorization: Bearer cmk_live_xxx.yyy" \
  -H "Content-Type: application/json" \
  -d '{}'

GET /api/artifacts/{id}

Get artifact by ID

Path parameters:

ParameterTypeRequiredDescription
idstringYesThe artifact ID

Response: 200 OK

FieldTypeRequiredDescription
dataArtifactNo

Example:

curl -X GET "https://api.memnexus.ai/api/artifacts/mem_abc123" \
  -H "Authorization: Bearer cmk_live_xxx.yyy"

PATCH /api/artifacts/{id}

Update artifact

Path parameters:

ParameterTypeRequiredDescription
idstringYesThe artifact ID

Request body:

FieldTypeRequiredDescription
contentstringNoArtifact content
typestringNoArtifact type (e.g., note, document, code)
namestringNoArtifact name
descriptionstringNoArtifact description
metadataobjectNoAdditional metadata

Response: 200 OK

FieldTypeRequiredDescription
dataArtifactNo

Example:

curl -X PATCH "https://api.memnexus.ai/api/artifacts/mem_abc123" \
  -H "Authorization: Bearer cmk_live_xxx.yyy" \
  -H "Content-Type: application/json" \
  -d '{}'

DELETE /api/artifacts/{id}

Delete artifact

Path parameters:

ParameterTypeRequiredDescription
idstringYesThe artifact ID

Response: 204 No Content

Example:

curl -X DELETE "https://api.memnexus.ai/api/artifacts/mem_abc123" \
  -H "Authorization: Bearer cmk_live_xxx.yyy"