---
descriptions:
  get_resource:
    resource_id: The ID of the resource to retrieve.
reference:
  curl:
    - key: get_resource
      id: get_resource
      url: /reference/fga/resource/get
      title: '/authorization/resources/:resource_id'
      type: GET
      parameters:
        - key: resource_id
          type: string
          description: (get_resource.resource_id)
      returns:
        - (resource)
  js:
    - key: getResource
      id: get_resource
      url: /reference/fga/resource/get
      title: authorization.getResource()
      parameters:
        - key: resourceId
          type: string
          description: (get_resource.resource_id)
      returns:
        - key: AuthorizationResource
          description: (resource.self)
originalPath: .tmp-workos-clone/packages/docs/content/reference/fga/resource/get.mdx
---

## Get a resource

Retrieve the details of an authorization resource by its ID.

<CodeBlock referenceId="get_resource">
  <CodeBlockTab title="Request" file="get-resource-request" />
  <CodeBlockTab title="Response" file="get-resource-response" />
</CodeBlock>
