---
descriptions:
  get_resource_by_external_id:
    organization_id: The ID of the organization.
    resource_type_slug: The slug of the resource type.
    external_id: The external ID of the resource.
reference:
  curl:
    - key: get_resource_by_external_id
      id: get_resource_by_external_id
      url: /reference/fga/resource/get-by-external-id
      title: >-
        /authorization/organizations/:organization_id/resources/:resource_type_slug/:external_id
      type: GET
      parameters:
        - key: organization_id
          type: string
          description: (get_resource_by_external_id.organization_id)
        - key: resource_type_slug
          type: string
          description: (get_resource_by_external_id.resource_type_slug)
        - key: external_id
          type: string
          description: (get_resource_by_external_id.external_id)
      returns:
        - (resource)
  js:
    - key: getResourceByExternalId
      id: get_resource_by_external_id
      url: /reference/fga/resource/get-by-external-id
      title: authorization.getResourceByExternalId()
      parameters:
        - key: options
          type: object
          unwrap: true
          properties:
            - key: organizationId
              type: string
              description: (get_resource_by_external_id.organization_id)
            - key: resourceTypeSlug
              type: string
              description: (get_resource_by_external_id.resource_type_slug)
            - key: externalId
              type: string
              description: (get_resource_by_external_id.external_id)
      returns:
        - key: AuthorizationResource
          description: (resource.self)
originalPath: >-
  .tmp-workos-clone/packages/docs/content/reference/fga/resource/get-by-external-id.mdx
---

## Get a resource by external ID

Retrieve the details of an authorization resource by its external ID, organization, and resource type. This is useful when you only have the external ID from your system and need to fetch the full resource details.

<CodeBlock referenceId="get_resource_by_external_id">
  <CodeBlockTab title="Request" file="get-resource-by-external-id-request" />
  <CodeBlockTab title="Response" file="get-resource-by-external-id-response" />
</CodeBlock>
