---
agentTools:
  projectIndex: https://percolate.dev/llms.txt
---

# /api/v5/access/

Get a list of access records.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Percolate V5 OpenAPI Specification",
    "description": "The Percolate API is RESTful in nature. Our APIs use HTTP resource-oriented URLs. HTTP methods are used to issue requests. HTTP response codes are used to indicate API successes or failures. All API requests and responses are in JSON representation. This document describes the HTTP resources and methods that form the Percolate API.\n",
    "version": "1.0.0",
    "contact": {
      "name": "Percolate Engineering"
    }
  },
  "servers": [
    {
      "url": "https://percolate.com"
    },
    {
      "url": "https://devolate.com"
    }
  ],
  "tags": [
    {
      "name": "Access",
      "description": "Access API is responsible for sharing objects between different scopes and within a single tree (distribute)."
    }
  ],
  "components": {
    "securitySchemes": {
      "oauth2": {
        "description": "Percolate supports OAuth 2.0 for authenticating all API requests.\n",
        "type": "oauth2",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://percolate.com/api/v5/authorize",
            "tokenUrl": "https://percolate.com/api/v5/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "oauth2": []
    }
  ],
  "paths": {
    "/api/v5/access/": {
      "get": {
        "description": "Get a list of access records.",
        "operationId": "getAccess",
        "tags": [
          "Access"
        ],
        "security": [
          {
            "oauth2": [
              "access:read"
            ]
          }
        ],
        "parameters": [
          {
            "name": "object_ids",
            "in": "query",
            "description": "A CSV of object ids.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get access records.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "meta": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "number",
                          "example": 3
                        }
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "title": "Access",
                        "description": "Respresents a single access grant of an object to a scope",
                        "type": "object",
                        "required": [
                          "id",
                          "object_id",
                          "scope_id",
                          "share_type",
                          "updated_at"
                        ],
                        "additionalProperties": false,
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^access:[a-zA-Z0-9_-]+$",
                            "example": "access:MD_123456789",
                            "description": "ID of the share."
                          },
                          "object_id": {
                            "type": "string",
                            "pattern": "^[_a-zA-Z:0-9]+:\\w+$",
                            "example": "taxonomy:34243",
                            "description": "The object id to share."
                          },
                          "scope_id": {
                            "type": "string",
                            "pattern": "^[_a-zA-Z:0-9]+:\\d+$",
                            "example": "license:1",
                            "description": "Which scope this resource is shared with."
                          },
                          "share_type": {
                            "type": "string",
                            "enum": [
                              "distribute",
                              "strict"
                            ],
                            "description": "The type of the share."
                          },
                          "updated_at": {
                            "title": "updated_At",
                            "description": "An absolute datetime indicating when this resource was last modified.",
                            "example": "2014-06-10T00:00:00Z",
                            "format": "date-time",
                            "type": "string"
                          },
                          "share_permission": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "update",
                                "delete",
                                "comment"
                              ]
                            },
                            "description": "Permission mask settings."
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "meta": {
                        "query": {
                          "limit": 10,
                          "offset": 0
                        },
                        "total": 1
                      },
                      "data": [
                        {
                          "id": "share:MD_908123",
                          "object_id": "taxonomy:435346",
                          "scope_id": "brand:1",
                          "share_type": "distribute",
                          "updated_at": "2015-09-28T18:08:34Z",
                          "share_permission": [
                            "update"
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "description": "A list of error objects for a given operation.",
                      "items": {
                        "description": "An error object",
                        "type": "object",
                        "additionalProperties": true,
                        "properties": {
                          "code": {
                            "description": "An arbitrary error code",
                            "type": "string",
                            "nullable": true
                          },
                          "message": {
                            "description": "A human readable message description what the error was.",
                            "type": "string",
                            "nullable": true
                          },
                          "key": {
                            "description": "A subset of [JSONPath](http://goessner.net/articles/JsonPath/) format to identify which part of the input data triggered the error. The value may also be `null` to indicate errors that aren't specific to one input field.",
                            "type": "string",
                            "nullable": true
                          },
                          "value": {
                            "description": "A value associated with the error. Useful for eg. validation errors where it may be desirable to report which input value of many was bad.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "code"
                        ]
                      }
                    }
                  }
                },
                "example": {
                  "errors": [
                    {
                      "code": "input:invalid_value",
                      "message": "Invalid attribute(s) given: foo",
                      "key": "$.include",
                      "value": "foo"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "description": "A list of error objects for a given operation.",
                      "items": {
                        "description": "An error object",
                        "type": "object",
                        "additionalProperties": true,
                        "properties": {
                          "code": {
                            "description": "An arbitrary error code",
                            "type": "string",
                            "nullable": true
                          },
                          "message": {
                            "description": "A human readable message description what the error was.",
                            "type": "string",
                            "nullable": true
                          },
                          "key": {
                            "description": "A subset of [JSONPath](http://goessner.net/articles/JsonPath/) format to identify which part of the input data triggered the error. The value may also be `null` to indicate errors that aren't specific to one input field.",
                            "type": "string",
                            "nullable": true
                          },
                          "value": {
                            "description": "A value associated with the error. Useful for eg. validation errors where it may be desirable to report which input value of many was bad.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "code"
                        ]
                      }
                    }
                  }
                },
                "example": {
                  "errors": [
                    {
                      "code": "input:invalid_value",
                      "message": "Invalid attribute(s) given: foo",
                      "key": "$.include",
                      "value": "foo"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Invalid authorization or resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "description": "A list of error objects for a given operation.",
                      "items": {
                        "description": "An error object",
                        "type": "object",
                        "additionalProperties": true,
                        "properties": {
                          "code": {
                            "description": "An arbitrary error code",
                            "type": "string",
                            "nullable": true
                          },
                          "message": {
                            "description": "A human readable message description what the error was.",
                            "type": "string",
                            "nullable": true
                          },
                          "key": {
                            "description": "A subset of [JSONPath](http://goessner.net/articles/JsonPath/) format to identify which part of the input data triggered the error. The value may also be `null` to indicate errors that aren't specific to one input field.",
                            "type": "string",
                            "nullable": true
                          },
                          "value": {
                            "description": "A value associated with the error. Useful for eg. validation errors where it may be desirable to report which input value of many was bad.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "code"
                        ]
                      }
                    }
                  }
                },
                "example": {
                  "errors": [
                    {
                      "code": "input:invalid_value",
                      "message": "Invalid attribute(s) given: foo",
                      "key": "$.include",
                      "value": "foo"
                    }
                  ]
                }
              }
            }
          },
          "405": {
            "description": "Method not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "description": "A list of error objects for a given operation.",
                      "items": {
                        "description": "An error object",
                        "type": "object",
                        "additionalProperties": true,
                        "properties": {
                          "code": {
                            "description": "An arbitrary error code",
                            "type": "string",
                            "nullable": true
                          },
                          "message": {
                            "description": "A human readable message description what the error was.",
                            "type": "string",
                            "nullable": true
                          },
                          "key": {
                            "description": "A subset of [JSONPath](http://goessner.net/articles/JsonPath/) format to identify which part of the input data triggered the error. The value may also be `null` to indicate errors that aren't specific to one input field.",
                            "type": "string",
                            "nullable": true
                          },
                          "value": {
                            "description": "A value associated with the error. Useful for eg. validation errors where it may be desirable to report which input value of many was bad.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "code"
                        ]
                      }
                    }
                  }
                },
                "example": {
                  "errors": [
                    {
                      "code": "input:invalid_value",
                      "message": "Invalid attribute(s) given: foo",
                      "key": "$.include",
                      "value": "foo"
                    }
                  ]
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "description": "A list of error objects for a given operation.",
                      "items": {
                        "description": "An error object",
                        "type": "object",
                        "additionalProperties": true,
                        "properties": {
                          "code": {
                            "description": "An arbitrary error code",
                            "type": "string",
                            "nullable": true
                          },
                          "message": {
                            "description": "A human readable message description what the error was.",
                            "type": "string",
                            "nullable": true
                          },
                          "key": {
                            "description": "A subset of [JSONPath](http://goessner.net/articles/JsonPath/) format to identify which part of the input data triggered the error. The value may also be `null` to indicate errors that aren't specific to one input field.",
                            "type": "string",
                            "nullable": true
                          },
                          "value": {
                            "description": "A value associated with the error. Useful for eg. validation errors where it may be desirable to report which input value of many was bad.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "code"
                        ]
                      }
                    }
                  }
                },
                "example": {
                  "errors": [
                    {
                      "code": "input:invalid_value",
                      "message": "Invalid attribute(s) given: foo",
                      "key": "$.include",
                      "value": "foo"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Rate limit. Response should contain a `Retry-After` header",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "description": "A list of error objects for a given operation.",
                      "items": {
                        "description": "An error object",
                        "type": "object",
                        "additionalProperties": true,
                        "properties": {
                          "code": {
                            "description": "An arbitrary error code",
                            "type": "string",
                            "nullable": true
                          },
                          "message": {
                            "description": "A human readable message description what the error was.",
                            "type": "string",
                            "nullable": true
                          },
                          "key": {
                            "description": "A subset of [JSONPath](http://goessner.net/articles/JsonPath/) format to identify which part of the input data triggered the error. The value may also be `null` to indicate errors that aren't specific to one input field.",
                            "type": "string",
                            "nullable": true
                          },
                          "value": {
                            "description": "A value associated with the error. Useful for eg. validation errors where it may be desirable to report which input value of many was bad.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "code"
                        ]
                      }
                    }
                  }
                },
                "example": {
                  "errors": [
                    {
                      "code": "input:invalid_value",
                      "message": "Invalid attribute(s) given: foo",
                      "key": "$.include",
                      "value": "foo"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 93,
      "1": 205,
      "2": 195,
      "3": 215,
      "4": 75,
      "5": 71,
      "6": 148,
      "7": 0,
      "8": 18,
      "9": 126,
      "10": 128,
      "11": 225
    }
  }
}
```