> ## Documentation Index
> Fetch the complete documentation index at: https://x-preview-mintlify-0fcdedf2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# API Key 및 Secret

> X API Key와 Secret(consumer key 및 secret)이 무엇인지, Developer Portal에서 이를 생성하는 방법, 그리고 재생성 또는 회전하는 방법을 알아보세요.

export const Button = ({href, children}) => {
  return <div className="not-prose group">
    <a href={href}>
      <button className="flex items-center space-x-2.5 py-1 px-4 bg-primary-dark dark:bg-white text-white dark:text-gray-950 rounded-full group-hover:opacity-[0.9] font-medium">
        <span>
          {children}
        </span>
        <svg width="3" height="24" viewBox="0 -9 3 24" class="h-6 rotate-0 overflow-visible"><path d="M0 0L3 3L0 6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg>
      </button>
    </a>
  </div>;
};

### API Key 및 Secret

API Key와 Secret(Consumer Key와 Secret이라고도 함)은 X API에 액세스하는 데 필요한 가장 기본적인 자격 증명입니다. 이 자격 증명은 X App에 대한 사용자 이름과 비밀번호 역할을 하며, X API가 어떤 App에서 요청이 오는지 이해하는 데 사용됩니다.

이 자격 증명은 [인증 엔드포인트](/resources/fundamentals/authentication/api-reference)에서 [사용자 Access Token 및 Secret](/resources/fundamentals/authentication/oauth-1-0a/api-key-and-secret) 및 [Bearer Token](/resources/fundamentals/authentication/oauth-2-0/bearer-tokens)과 같은 추가 자격 증명을 생성하는 데 사용될 수 있습니다. 또한 OAuth 1.0a User Context 인증이 필요한 [요청을 승인](/resources/fundamentals/authentication/oauth-1-0a/authorizing-a-request)하기 위해 Access Token 및 기타 승인 매개변수와 함께 이 자격 증명을 사용해야 합니다.

#### API Key 및 Secret을 얻는 방법

X API Key와 Secret을 얻으려면 다음 단계를 따르세요:

1. [X 개발자 계정에 가입](https://developer.x.com/en/apply-for-access)합니다.
2. [Developer Console](/resources/fundamentals/developer-portal) 내에서 [X App](/resources/fundamentals/developer-apps)을 생성합니다. [X API v2](/x-api/introduction)를 사용하려면 개발자 App의 키와 토큰을 사용해야 합니다.

X App을 생성할 때 API Key와 Secret이 Bearer Token과 함께 표시됩니다. 이 자격 증명은 한 번만 표시되므로 비밀번호 관리자나 안전한 곳에 반드시 저장해두세요.

키와 토큰을 처리하는 방법에 대한 추가 권장 사항은 자격 증명이 유출된 경우 어떻게 해야 하는지에 대한 세부 정보를 포함하여 [인증 모범 사례](/resources/fundamentals/authentication/guides/authentication-best-practices) 페이지에서 확인할 수 있습니다.

#### App 생성 후 API Key와 Secret을 찾고 재생성하는 방법

이미 App을 생성했고 API Key와 Secret을 찾거나 재생성해야 하는 경우 다음 단계를 따르세요:

1. Developer Console로 이동합니다.
2. 사이드 네비게이션의 'Apps' 드롭다운을 확장합니다.
3. 찾거나 재생성하려는 API Key 및 Secret과 연결된 App을 엽니다.
4. Keys and tokens 탭으로 이동합니다.

여기에서 App과 관련된 모든 자격 증명을 찾을 수 있습니다.

#### API Key 및 Secret 사용 방법

X Developer Platform을 처음 살펴보는 경우, 플랫폼에서 사용 가능한 것을 확인하기 위해 [도구 또는 라이브러리](/resources/tools-and-libraries)를 사용하는 것을 권장합니다. 이러한 도구는 인증을 자연스럽게 처리하며, 많은 시간과 번거로움을 절약할 수 있습니다. 초보 개발자에게는 [Postman으로 시작하기](/tutorials/postman-getting-started) 또는 [Insomnia](https://insomnia.rest/)를 특별히 권장합니다.

처음부터 요청을 구성하는 데 관심이 있는 경우 [OAuth 1.0a 요청 승인](/resources/fundamentals/authentication/oauth-1-0a/authorizing-a-request) 가이드를 읽어보세요.
