Get API resource

GET /api/resources/{id}

Get an API resource details by ID.

Path parameters

  • id string Required

    The unique identifier of the resource.

Responses

  • 200 application/json

    The requested resource.

    Hide response attributes Show response attributes object
    • tenantId string Required

      Maximum length is 21.

    • id string Required

      Minimum length is 1, maximum length is 21.

    • name string Required

      Minimum length is 1.

    • indicator string Required

      Minimum length is 1.

    • isDefault boolean Required
    • accessTokenTtl number Required
  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

  • 404

    Not Found

GET /api/resources/{id}
curl \
 --request GET 'https://[tenant_id].logto.app/api/resources/{id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "tenantId": "string",
  "id": "string",
  "name": "string",
  "indicator": "string",
  "isDefault": true,
  "accessTokenTtl": 42.0
}