Skip to main content
POST
/
v1
/
artifacts
/
{artifactId}
/
shares
Create (or refresh) a share for an artifact
curl --request POST \
  --url https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/artifacts/{artifactId}/shares \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "access_level": "view"
}
'
{
  "id": "<string>",
  "type": "artifact",
  "artifact_id": "<string>",
  "url": "<string>",
  "apiUrl": "<string>",
  "access_level": "<string>"
}

Authorizations

Authorization
string
header
required

User-bound credential carrying an identity: either a session JWT or a user access token (at:*) generated from the user settings UI. Send as Authorization: Bearer <token>. Org API keys (iak_*) are not accepted here - they carry no user identity. Use the x-prismeai-api-key header instead (see OrgApiKeyAuth).

Path Parameters

artifactId
string
required
Maximum string length: 128

Body

application/json
access_level
enum<string>

Default view.

Available options:
view
Maximum string length: 32

Response

Share created or refreshed.

id
string
type
enum<string>
Available options:
artifact
artifact_id
string
url
string
apiUrl
string
access_level
string