---
title: "Get multiple resource types."
method: GET
path: "/resource-types.json"
tags: ["Resource types"]
---

# Get multiple resource types.

`GET /resource-types.json`

## Request

- Base URL: `https://passbolt.local`
- URL: `https://passbolt.local/resource-types.json`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/passbolt/apis/passbolt-api/docs/resource-types.json/get.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `contain[resources_count]` 1 | 0
- `filter[is-deleted]` 1 | 0

## Response `200`

Operation is successful

- object
  - `header` Header, required
    - `id` string, uuid, required
    - `status` 'success' | 'error', required
    - `servertime` integer, required
    - `action` string, uuid, required
    - `message` string, required
    - `url` string, uri, required
    - `code` integer, required
  - `body` ResourceTypeIndex[], required
    - `id` string, uuid, required
    - `slug` 'password-string' | 'password-and-description' | 'totp' | 'password-description-totp' | 'v5-default-with-totp' | 'v5-password-string (Deprecated)' | 'v5-totp-standalone' | 'v5-default', required: * `password-string` - The original passbolt resource type, where the secret is a non empty string. * `password-and-description` - A resource with the password and the description encrypted. * `totp` - A resource with standalone TOTP fields. * `password-description-totp` - A resource with encrypted password, description and TOTP fields. * `v5-default-with-totp` - The new default resource type with a TOTP introduced with v5. * `v5-password-string (Deprecated)` - The original passbolt resource type, kept for backward compatibility reasons. * `v5-totp-standalone` - The new standalone TOTP resource type introduced with v5. * `v5-default` - The new default resource type introduced with v5.
    - `name` string, required
    - `description` string, required
    - `definition` object, required: Schema for the expected data for this kind of resources.
    - `deleted` string, required
    - `created` string, date-time, required
    - `modified` string, date-time, required
    - `default` boolean, required
    - `resources_count` integer

## Other responses

- `400`: Bad request
- `401`: Authentication required.

## Changes

- **2025-06-25** `829cf48ab700`: 6 breaking, 2 warning, 3 info
  - the `body/items/` response's property type changed from `object` to no type for status `200`
  - removed the required property `body/items/definition` from the response with the `200` status
  - removed the required property `body/items/description` from the response with the `200` status
  - removed the required property `body/items/id` from the response with the `200` status
  - …7 more

[Operation history](https://skmtc.dev/passbolt/apis/passbolt-api/changes/resource-types.json/get.md)

---

[API](https://skmtc.dev/passbolt/apis/passbolt-api.md) - [All operations](https://skmtc.dev/passbolt/apis/passbolt-api/llms.txt) - [OpenAPI document](https://skmtc.dev/passbolt/apis/passbolt-api/revisions/8d72215e2274?raw)
