---
reference:
  curl:
    - key: get_magic_auth
      id: get_magic_auth
      url: /reference/authkit/magic-auth/get
      title: '/user_management/magic_auth/:id'
      type: GET
      parameters:
        - (magic_auth.id)
      returns:
        - (magic_auth)
  js:
    - key: getMagicAuth
      id: get_magic_auth
      url: /reference/authkit/magic-auth/get
      title: userManagement.getMagicAuth()
      parameters:
        - (MagicAuth.id)
      returns:
        - (MagicAuth)
  go:
    - key: getMagicAuth
      id: get_magic_auth
      url: /reference/authkit/magic-auth/get
      title: usermanagement.GetMagicAuth()
      parameters:
        - (ctx)
        - key: opts
          type: usermanagement.GetMagicAuthOpts
          unwrap: true
          properties:
            - key: MagicAuth
              type: string
              description: (magic_auth.id)
      returns:
        - (MagicAuth)
        - (err)
  php:
    - key: getMagicAuth
      id: get_magic_auth
      url: /reference/authkit/magic-auth/get
      title: $userManagement->getMagicAuth()
      parameters:
        - (MagicAuth.id)
      returns:
        - (MagicAuth)
  python:
    - key: get_magic_auth
      id: get_magic_auth
      url: /reference/authkit/magic-auth/get
      title: user_management.get_magic_auth()
      parameters:
        - key: magic_auth_id
          type: str
          description: (magic_auth.id)
      returns:
        - (MagicAuth)
  ruby:
    - key: get_magic_auth
      id: get_magic_auth
      url: /reference/authkit/magic-auth/get
      title: UserManagement.get_magic_auth()
      parameters:
        - (MagicAuth.id)
      returns:
        - (MagicAuth)
  java:
    - key: getMagicAuth
      id: get_magic_auth
      url: /reference/authkit/magic-auth/get
      title: userManagement.getMagicAuth()
      parameters:
        - (MagicAuth.id)
      returns:
        - (MagicAuth)
originalPath: .tmp-workos-clone/packages/docs/content/reference/authkit/magic-auth/get.mdx
---

## Get Magic Auth code details

Get the details of an existing Magic Auth code that can be used to send an email to a user for authentication.

<CodeBlock referenceId="get_magic_auth">
  <CodeBlockTab title="Request" file="get-magic-auth-request" />
  <CodeBlockTab title="Response" file="get-magic-auth-response" />
</CodeBlock>
