Overview
GET/access/assignmentsaccess

List assignments (workspace-wide for admins; per-item for M holders)

List assignments.

Auth: bearerAuth — calls run as the authenticated user.

Parameters
  • workspacequerystring
  • featurequery · optionalstring
  • itemIdquery · optionalstring
Responses
200

Assignments

  • assignmentsAccessAssignment[]
  • restrictedoptionalboolean

    present on item-scoped listings: whether the item is RESTRICTED

Example
{
  "assignments": [
    {
      "id": "string",
      "subjectKind": "customer",
      "subjectId": "string",
      "scopeFeature": "string",
      "scopeItemId": "string",
      "roleId": "string",
      "roleSlug": "string",
      "roleName": "string",
      "grantedBy": "string",
      "grantedAt": "string"
    }
  ],
  "restricted": true
}
400

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
401

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
403

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
404

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
Code examples
cURL
curl -X GET "https://api.agenticdeveloperhub.com/access/assignments" \
  -H "Authorization: Bearer YOUR_TOKEN"
JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/access/assignments", {
  method: "GET",
  headers: {
    "Authorization": "Bearer YOUR_TOKEN"
  },
});
const data = await res.json();