> ## Documentation Index
> Fetch the complete documentation index at: https://docs.x.com/llms.txt
> Use this file to discover all available pages before exploring further.

# X API v2의 규정 준수 이벤트 스트림

> X API v2 규정 준수 이벤트 스트림을 사용하여 저장된 X 데이터를 Post 삭제, 편집 및 사용자에 대한 계정 변경사항과 거의 실시간으로 동기화하세요.

export const Button = ({href, children}) => {
  return <div className="not-prose">
    <a href={href}>
      <button className="x-btn">
        <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>;
};

X는 X API로 개발하는 개발자 커뮤니티에 헌신하고 있습니다. 이러한 헌신의 일환으로 우리는 API를 개발자에게 개방적이고 공정하게, X 사용자에게 안전하게, 그리고 X 플랫폼 전체에 유익하도록 만드는 것을 목표로 합니다. X 콘텐츠를 오프라인으로 저장하는 모든 개발자는 데이터가 사용자 의도 및 X의 현재 콘텐츠 상태를 반영하도록 해야 합니다. 예를 들어 X 사용자가 Post 또는 계정을 삭제하거나 Post를 보호하거나 편집할 때 X와 개발자는 그 사람의 기대와 의도를 존중하는 것이 매우 중요합니다.

규정 준수 이벤트의 거의 실시간 스트림은 개발자가 [X Developer Agreement and Policy](https://developer.x.com/en/developer-terms/policy)에 따라 X 데이터를 유지 관리할 수 있는 도구를 제공합니다.

두 가지 규정 준수 이벤트 스트림이 있습니다. 하나는 *Post 규정 준수* 이벤트용이고, 다른 하나는 *User 규정 준수* 이벤트용입니다. 이러한 스트림은 Enterprise 액세스에서 사용할 수 있으며, 대량의 데이터를 수집하는 파트너가 Post 편집 이벤트와 같은 규정 준수 이벤트를 '수신'할 수 있도록 설계되었습니다.

이러한 스트림은 다음 이벤트를 제공합니다:

**Post 규정 준수 스트림:**

* **delete** - Post가 삭제되었음을 나타냅니다.

* **tweet\_edit** - Post가 편집되었음을 나타내며 업데이트된 Post의 ID를 제공합니다.

* **withheld** - 하나 이상의 국가에서 Post가 보류되었음을 나타냅니다.

* **drop** - Post를 공개 보기에서 제거해야 함을 나타냅니다.

* **undrop** - Post를 다시 표시하고 공개로 취급할 수 있음을 나타냅니다.

**User 규정 준수 스트림:**

* **user\_delete** - User 계정이 삭제되었음을 나타냅니다

* **user\_undelete** - User 계정이 삭제 취소되었음을 나타냅니다

* **user\_protect** - User 계정이 비공개가 되었음을 나타냅니다

* **user\_unprotect** - User 계정이 공개가 되었음을 나타냅니다

* **user\_withheld** - User 계정이 하나 이상의 국가에서 보류되었음을 나타냅니다.

* **user\_suspend** - User 계정이 정지되었음을 나타냅니다

* **user\_unsuspend** - User 계정 정지가 해제되었음을 나타냅니다

* **user\_profile\_modification** - User 프로필이 업데이트되었음을 나타냅니다. 여기에는 업데이트된 description, name, location, URL이 포함됩니다.

**계정 설정**

이러한 엔드포인트에 액세스하려면 다음이 필요합니다:

* 승인된 [개발자 계정](https://developer.x.com/en/portal/petition/essential/basic-info)
* [Project](/resources/fundamentals/developer-apps) 내에 있는 [developer App](/resources/fundamentals/developer-apps)의 키와 토큰을 사용하여 인증

X API v2 엔드포인트에 액세스하는 방법에 대해 [시작 가이드](/x-api/getting-started/getting-access)에서 자세히 알아보세요.

<div className="flex space-x-2">
  <Button href="https://www.postman.com/xapidevelopers/x-api-public-workspace/collection/34902927-2efc5689-99c6-4ab6-8091-996f35c2fd80">
    Run in Postman
  </Button>

  <Button href="https://developer.x.com/apitools/api?endpoint=/2/compliance/jobs">
    Try with API Explorer
  </Button>
</div>

***

## 스트리밍 기본 사항

<CardGroup cols={2}>
  <Card title="스트리밍 데이터 소비" icon="stream" href="/x-api/fundamentals/consuming-streaming-data">
    스트리밍 클라이언트를 위한 모범 사례
  </Card>

  <Card title="연결 해제 처리" icon="plug" href="/x-api/fundamentals/handling-disconnections">
    우아하게 재연결하기
  </Card>

  <Card title="대용량 처리" icon="gauge-high" href="/x-api/fundamentals/high-volume-capacity">
    높은 처리량 처리
  </Card>

  <Card title="복구 및 이중화" icon="https://mintcdn.com/x-preview/cfyQtgCdwk8p69aa/icons/xds/icon-shield-keyhole.svg?fit=max&auto=format&n=cfyQtgCdwk8p69aa&q=85&s=a0e05514090c8a6af232297bfb9c4055" href="/x-api/fundamentals/recovery-and-redundancy" width="24" height="24" data-path="icons/xds/icon-shield-keyhole.svg">
    복원력 있는 애플리케이션 구축
  </Card>
</CardGroup>
