Register an artifact
curl --request POST \
--url https://useorgx.com/api/v1/artifacts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"entity_type": "task",
"entity_id": "7fbb727d-17c4-4bc7-9fc7-60eb15e9314d",
"name": "Launch plan review notes",
"artifact_type": "shared.project_handbook"
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
entity_type: 'task',
entity_id: '7fbb727d-17c4-4bc7-9fc7-60eb15e9314d',
name: 'Launch plan review notes',
artifact_type: 'shared.project_handbook'
})
};
fetch('https://useorgx.com/api/v1/artifacts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://useorgx.com/api/v1/artifacts"
payload = {
"entity_type": "task",
"entity_id": "7fbb727d-17c4-4bc7-9fc7-60eb15e9314d",
"name": "Launch plan review notes",
"artifact_type": "shared.project_handbook"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"id": "3a2b1c0d-9e8f-4a7b-8c6d-5e4f3a2b1c0d",
"workspace_id": "11111111-1111-4111-8111-111111111111",
"name": "Launch plan review notes",
"artifact_type": "shared.project_handbook",
"artifact_url": "https://example.com/review.md",
"entity_type": "task",
"entity_id": "7fbb727d-17c4-4bc7-9fc7-60eb15e9314d",
"status": "draft",
"version": 1
},
"meta": {
"apiVersion": "1",
"artifactTypeFallback": false,
"effectiveArtifactType": "shared.project_handbook",
"duplicate": true
}
}{
"data": {
"id": "3a2b1c0d-9e8f-4a7b-8c6d-5e4f3a2b1c0d",
"workspace_id": "11111111-1111-4111-8111-111111111111",
"name": "Launch plan review notes",
"artifact_type": "shared.project_handbook",
"artifact_url": "https://example.com/review.md",
"entity_type": "task",
"entity_id": "7fbb727d-17c4-4bc7-9fc7-60eb15e9314d",
"status": "draft",
"version": 1,
"created_at": "2026-08-19T15:10:00.000Z",
"updated_at": "2026-08-19T15:10:00.000Z"
},
"meta": {
"apiVersion": "1",
"artifactTypeFallback": false,
"effectiveArtifactType": "shared.project_handbook",
"duplicate": false
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docsUrl": "<string>",
"retryAfter": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docsUrl": "<string>",
"retryAfter": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docsUrl": "<string>",
"retryAfter": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docsUrl": "<string>",
"retryAfter": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docsUrl": "<string>",
"retryAfter": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docsUrl": "<string>",
"retryAfter": 123
}
}Artifacts
Register an artifact
Register a produced piece of work against the entity it belongs to. One of artifact_url
or external_url is required. The target entity determines the workspace. Statuses that
assert a human ruling (approved, rejected) are refused on this path; an automated
reviewer records eval_passed instead. Reuse the same Idempotency-Key and request body
to safely retry a timed-out create; reusing a key with a different body returns a conflict.
POST
/
artifacts
Register an artifact
curl --request POST \
--url https://useorgx.com/api/v1/artifacts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"entity_type": "task",
"entity_id": "7fbb727d-17c4-4bc7-9fc7-60eb15e9314d",
"name": "Launch plan review notes",
"artifact_type": "shared.project_handbook"
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
entity_type: 'task',
entity_id: '7fbb727d-17c4-4bc7-9fc7-60eb15e9314d',
name: 'Launch plan review notes',
artifact_type: 'shared.project_handbook'
})
};
fetch('https://useorgx.com/api/v1/artifacts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://useorgx.com/api/v1/artifacts"
payload = {
"entity_type": "task",
"entity_id": "7fbb727d-17c4-4bc7-9fc7-60eb15e9314d",
"name": "Launch plan review notes",
"artifact_type": "shared.project_handbook"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"id": "3a2b1c0d-9e8f-4a7b-8c6d-5e4f3a2b1c0d",
"workspace_id": "11111111-1111-4111-8111-111111111111",
"name": "Launch plan review notes",
"artifact_type": "shared.project_handbook",
"artifact_url": "https://example.com/review.md",
"entity_type": "task",
"entity_id": "7fbb727d-17c4-4bc7-9fc7-60eb15e9314d",
"status": "draft",
"version": 1
},
"meta": {
"apiVersion": "1",
"artifactTypeFallback": false,
"effectiveArtifactType": "shared.project_handbook",
"duplicate": true
}
}{
"data": {
"id": "3a2b1c0d-9e8f-4a7b-8c6d-5e4f3a2b1c0d",
"workspace_id": "11111111-1111-4111-8111-111111111111",
"name": "Launch plan review notes",
"artifact_type": "shared.project_handbook",
"artifact_url": "https://example.com/review.md",
"entity_type": "task",
"entity_id": "7fbb727d-17c4-4bc7-9fc7-60eb15e9314d",
"status": "draft",
"version": 1,
"created_at": "2026-08-19T15:10:00.000Z",
"updated_at": "2026-08-19T15:10:00.000Z"
},
"meta": {
"apiVersion": "1",
"artifactTypeFallback": false,
"effectiveArtifactType": "shared.project_handbook",
"duplicate": false
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docsUrl": "<string>",
"retryAfter": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docsUrl": "<string>",
"retryAfter": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docsUrl": "<string>",
"retryAfter": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docsUrl": "<string>",
"retryAfter": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docsUrl": "<string>",
"retryAfter": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docsUrl": "<string>",
"retryAfter": 123
}
}Authorizations
OrgX API key, sent as Authorization: Bearer oxk_...
Headers
Workspace-scoped retry key for safe mutation replay.
Required string length:
1 - 200Pattern:
^[A-Za-z0-9][A-Za-z0-9._:/-]{0,199}$Body
application/json
One of artifact_url or external_url is required.
Available options:
project, initiative, workstream, milestone, task, decision Required string length:
1 - 500Required string length:
1 - 120Maximum string length:
2000Maximum string length:
2000Maximum string length:
4000Maximum string length:
25000Available options:
draft, in_review, changes_requested, superseded, archived Available options:
human, agent 