Skip to main content
POST
/
api
/
directory
/
resources.list
List resources
curl --request POST \
  --url https://api.example.com/api/directory/resources.list \
  --header 'Content-Type: application/json' \
  --data '
{
  "kind": "872815618512410358",
  "at_date": "2019-11-11",
  "attributes": [
    "<string>"
  ],
  "with_teams": false,
  "filters": [
    {
      "key": "resource.ids",
      "value": [
        "872815618512410358"
      ]
    }
  ],
  "orders": [
    {
      "key": "resource.attribute",
      "direction": "asc",
      "attribute": "<string>"
    }
  ],
  "pagination": {
    "limit": 123,
    "next_token": "<string>"
  }
}
'
{
  "next_token": "<string>",
  "data": [
    {
      "id": "872815618512410358",
      "kind": "872815618512410358",
      "label": "<string>",
      "short_label": "<string>",
      "picture": {
        "shape": "round",
        "initial": "<string>",
        "url": "<string>"
      },
      "attributes": {},
      "teams": [
        {
          "id": "872815618512410358",
          "head": true,
          "name": {
            "en": "Hello",
            "fr": "Bonjour",
            "de": "Guten Tag"
          }
        }
      ]
    }
  ]
}

Body

application/json
kind
string<snowflake>
required
Example:

"872815618512410358"

at_date
string<local-date>
Example:

"2019-11-11"

attributes
string[] | null
with_teams
boolean | null
default:false
filters
object[]
orders
object[]
pagination
object

Response

200 - application/json
next_token
string | null
required
data
object[]
required