---
title: "Get a resource type."
method: GET
path: "/resource-types/{resourceTypeId}.json"
tags: ["Resource types"]
---

# Get a resource type.

`GET /resource-types/{resourceTypeId}.json`

## Request

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

## Path parameters

- `resourceTypeId` string, uuid, required

## 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` ResourceType, 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

## Other responses

- `400`: Bad request
- `401`: Authentication required.
- `404`: Not found

## Changes

- **2025-06-25** `829cf48ab700`: 4 warning, 3 info
  - added the new `v5-default` enum value to the `body/slug` response property for the response status `200`
  - added the new `v5-default-with-totp` enum value to the `body/slug` response property for the response status `200`
  - added the new `v5-password-string (Deprecated)` enum value to the `body/slug` response property for the response status `200`
  - added the new `v5-totp-standalone` enum value to the `body/slug` response property for the response status `200`
  - …3 more

[Operation history](https://skmtc.dev/passbolt/apis/passbolt-api/changes/resource-types/:resourceTypeId.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)
