{"meta":{"title":"사용자 상호 작용에 대한 REST API 엔드포인트","intro":"REST API를 사용하여 퍼블릭 리포지토리에서 댓글을 달거나, 이슈를 열거나, 끌어오기 요청을 만들 수 있는 사용자 유형을 일시적으로 제한합니다.","product":"REST API","breadcrumbs":[{"href":"/ko/rest","title":"REST API"},{"href":"/ko/rest/interactions","title":"상호 작용"},{"href":"/ko/rest/interactions/user","title":"사용자"}],"documentType":"article"},"body":"# 사용자 상호 작용에 대한 REST API 엔드포인트\n\nREST API를 사용하여 퍼블릭 리포지토리에서 댓글을 달거나, 이슈를 열거나, 끌어오기 요청을 만들 수 있는 사용자 유형을 일시적으로 제한합니다.\n\n## 사용자 상호 작용 정보\n\nREST API를 사용하여 퍼블릭 리포지토리에서 댓글을 달거나, 이슈를 열거나, 끌어오기 요청을 만들 수 있는 사용자 유형을 일시적으로 제한할 수 있습니다. 제한을 사용하도록 설정하면 지정된 유형의 GitHub 사용자만 상호 작용에 참여할 수 있습니다. 제한은 정의된 기간 후에 자동으로 만료됩니다. 다음은 GitHub 사용자 유형에 대한 더 많은 정보입니다.\n\n* 리포지토리와 상호 작용하지 않는 **기존 사용자:** 상호 작용을 `existing_users`로 제한하면 이전에 기여하지 않고 협력자가 아니며 계정이 생성된 지 24시간 미만인 신규 사용자가 일시적으로 제한됩니다..\n* 리포지토리와 상호 작용하지 않는 **기여자만:** 상호 작용을 `contributors_only`로 제한할 때 이전에 기여하지 않았으며 협력자도 아닌 사용자는 일시적으로 제한됩니다..\n* 리포지토리와 상호 작용하지 않는 **협력자만 해당:** 상호 작용을 `collaborators_only`으로 제한하면 협력자가 아닌 사용자가 일시적으로 제한됩니다..\n\n사용자 수준에서 상호 작용 제한을 설정하면 사용자가 소유한 개별 리포지토리에 대해 설정된 모든 상호 작용 제한을 덮어씁니다. 사용자 소유의 개별 리포지토리에 대해 서로 다른 상호 작용 제한을 설정하려면 [리포지토리](/ko/rest/interactions/repos) 상호 작용 엔드포인트를 대신 사용합니다.\n\n> \\[!NOTE]\n> Most endpoints use `Authorization: Bearer <YOUR-TOKEN>` and `Accept: application/vnd.github+json` headers, plus `X-GitHub-Api-Version: 2026-03-10`. Curl examples below omit these standard headers for brevity.\n\n## Get interaction restrictions for your public repositories\n\n```\nGET /user/interaction-limits\n```\n\nShows which type of GitHub user can interact with your public repositories and when the restriction expires.\n\n### HTTP response status codes\n\n* **200** - Default response\n\n* **204** - Response when there are no restrictions\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/user/interaction-limits\n```\n\n**Response schema (Status: 200):**\n\n* any of:\n  * **Interaction Limits**\n    * `limit`: required, string, enum: `existing_users`, `contributors_only`, `collaborators_only`\n    * `origin`: required, string\n    * `expires_at`: required, string, format: date-time\n  * **object**\n\n## Set interaction restrictions for your public repositories\n\n```\nPUT /user/interaction-limits\n```\n\nTemporarily restricts which type of GitHub user can interact with your public repositories. Setting the interaction limit at the user level will overwrite any interaction limits that are set for individual repositories owned by the user.\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Body parameters\n\n* **`limit`** (string) (required)\n  The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect.\n  Can be one of: `existing_users`, `contributors_only`, `collaborators_only`\n\n* **`expiry`** (string)\n  The duration of the interaction restriction. Default: one\\_day.\n  Can be one of: `one_day`, `three_days`, `one_week`, `one_month`, `six_months`\n\n### HTTP response status codes\n\n* **200** - OK\n\n* **422** - Validation failed, or the endpoint has been spammed.\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X PUT \\\n  https://api.github.com/user/interaction-limits \\\n  -d '{\n  \"limit\": \"collaborators_only\",\n  \"expiry\": \"one_month\"\n}'\n```\n\n**Response schema (Status: 200):**\n\n* `limit`: required, string, enum: `existing_users`, `contributors_only`, `collaborators_only`\n* `origin`: required, string\n* `expires_at`: required, string, format: date-time\n\n## Remove interaction restrictions from your public repositories\n\n```\nDELETE /user/interaction-limits\n```\n\nRemoves any interaction restrictions from your public repositories.\n\n### HTTP response status codes\n\n* **204** - No Content\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X DELETE \\\n  https://api.github.com/user/interaction-limits\n```\n\n**Response schema (Status: 204):**"}