openapi: 3.0.0 info: version: 2015-07-09 x-release: v4 title: APIs.io Engineering Platform Amazon API Gateway 2014 11 13 Users API description: Amazon API Gateway

Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on AWS Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.

x-logo: url: https://api.apis.guru/v2/cache/logo/https_twitter.com_awscloud_profile_image.png backgroundColor: '#FFFFFF' termsOfService: https://aws.amazon.com/service-terms/ contact: name: Mike Ralphson email: mike.ralphson@gmail.com url: https://github.com/mermade/aws2openapi x-twitter: PermittedSoc license: name: Apache 2.0 License url: http://www.apache.org/licenses/ x-providerName: amazonaws.com x-serviceName: apigateway x-origin: - contentType: application/json url: https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/apigateway-2015-07-09.normal.json converter: url: https://github.com/mermade/aws2openapi version: 1.0.0 x-apisguru-driver: external x-apiClientRegistration: url: https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct x-apisguru-categories: - cloud x-preferred: true servers: - url: http://apigateway.{region}.amazonaws.com variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The Amazon API Gateway multi-region endpoint - url: https://apigateway.{region}.amazonaws.com variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The Amazon API Gateway multi-region endpoint - url: http://apigateway.{region}.amazonaws.com.cn variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Amazon API Gateway endpoint for China (Beijing) and China (Ningxia) - url: https://apigateway.{region}.amazonaws.com.cn variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Amazon API Gateway endpoint for China (Beijing) and China (Ningxia) security: - hmac: [] tags: - name: Users description: Interact with and view information about users and also current user. paths: /user: get: summary: APIs.io Engineering Platform Get the authenticated user description: OAuth app tokens and personal access tokens (classic) need the `user` scope in order for the response to include private profile information. tags: - Users operationId: users/get-authenticated externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/users#get-the-authenticated-user parameters: [] responses: '200': description: Response content: application/json: schema: oneOf: - $ref: '#/components/schemas/private-user' - $ref: '#/components/schemas/public-user' examples: response-with-public-and-private-profile-information: $ref: '#/components/examples/private-user-response-with-public-and-private-profile-information' response-with-public-profile-information: $ref: '#/components/examples/private-user-response-with-public-profile-information' '304': $ref: '#/components/responses/not_modified' '403': $ref: '#/components/responses/forbidden' '401': $ref: '#/components/responses/requires_authentication' x-github: githubCloudOnly: false enabledForGitHubApps: false category: users subcategory: users patch: summary: APIs.io Engineering Platform Update the authenticated user description: '**Note:** If your email is set to private and you send an `email` parameter as part of this request to update your profile, your privacy settings are still enforced: the email address will not be displayed on your public profile or via the API.' tags: - Users operationId: users/update-authenticated externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/users#update-the-authenticated-user parameters: [] requestBody: required: false content: application/json: schema: type: object properties: name: description: The new name of the user. type: string example: Omar Jahandar email: description: The publicly visible email address of the user. type: string example: omar@example.com blog: description: The new blog URL of the user. type: string example: blog.example.com twitter_username: description: The new Twitter username of the user. type: string example: therealomarj nullable: true company: description: The new company of the user. type: string example: Acme corporation location: description: The new location of the user. type: string example: Berlin, Germany hireable: description: The new hiring availability of the user. type: boolean bio: description: The new short biography of the user. type: string examples: default: summary: Example of updating blog and name value: blog: https://github.com/blog name: monalisa octocat responses: '200': description: Response content: application/json: schema: $ref: '#/components/schemas/private-user' examples: default: $ref: '#/components/examples/private-user' '304': $ref: '#/components/responses/not_modified' '404': $ref: '#/components/responses/not_found' '403': $ref: '#/components/responses/forbidden' '401': $ref: '#/components/responses/requires_authentication' '422': $ref: '#/components/responses/validation_failed' x-github: githubCloudOnly: false enabledForGitHubApps: false category: users subcategory: users /user/emails: get: summary: APIs.io Engineering Platform List email addresses for the authenticated user description: 'Lists all of your email addresses, and specifies which one is visible to the public. OAuth app tokens and personal access tokens (classic) need the `user:email` scope to use this endpoint.' tags: - Users operationId: users/list-emails-for-authenticated-user externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/emails#list-email-addresses-for-the-authenticated-user parameters: - $ref: '#/components/parameters/per-page' - $ref: '#/components/parameters/page' responses: '200': description: Response content: application/json: schema: type: array items: $ref: '#/components/schemas/email' examples: default: $ref: '#/components/examples/email-items-2' headers: Link: $ref: '#/components/headers/link' '304': $ref: '#/components/responses/not_modified' '404': $ref: '#/components/responses/not_found' '403': $ref: '#/components/responses/forbidden' '401': $ref: '#/components/responses/requires_authentication' x-github: githubCloudOnly: false enabledForGitHubApps: false category: users subcategory: emails post: summary: APIs.io Engineering Platform Add an email address for the authenticated user description: OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint. tags: - Users operationId: users/add-email-for-authenticated-user externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/emails#add-an-email-address-for-the-authenticated-user parameters: [] requestBody: required: false content: application/json: schema: oneOf: - type: object properties: emails: description: Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key. type: array items: type: string example: username@example.com minItems: 1 example: [] required: - emails example: emails: - octocat@github.com - mona@github.com - type: array items: type: string example: username@example.com minItems: 1 - type: string examples: default: summary: Example adding multiple email addresses value: emails: - octocat@github.com - mona@github.com - octocat@octocat.org responses: '201': description: Response content: application/json: schema: type: array items: $ref: '#/components/schemas/email' examples: default: $ref: '#/components/examples/email-items' '422': $ref: '#/components/responses/validation_failed' '304': $ref: '#/components/responses/not_modified' '404': $ref: '#/components/responses/not_found' '403': $ref: '#/components/responses/forbidden' '401': $ref: '#/components/responses/requires_authentication' x-github: githubCloudOnly: false enabledForGitHubApps: false category: users subcategory: emails delete: summary: APIs.io Engineering Platform Delete an email address for the authenticated user description: OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint. tags: - Users operationId: users/delete-email-for-authenticated-user externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/emails#delete-an-email-address-for-the-authenticated-user parameters: [] requestBody: content: application/json: schema: oneOf: - type: object description: Deletes one or more email addresses from your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key. properties: emails: description: Email addresses associated with the GitHub user account. type: array items: type: string example: username@example.com minItems: 1 example: emails: - octocat@github.com - mona@github.com required: - emails - type: array items: type: string example: username@example.com minItems: 1 - type: string examples: default: summary: Example deleting multiple email accounts value: emails: - octocat@github.com - mona@github.com responses: '204': description: Response '304': $ref: '#/components/responses/not_modified' '404': $ref: '#/components/responses/not_found' '403': $ref: '#/components/responses/forbidden' '401': $ref: '#/components/responses/requires_authentication' '422': $ref: '#/components/responses/validation_failed' x-github: githubCloudOnly: false enabledForGitHubApps: false category: users subcategory: emails /user/followers: get: summary: APIs.io Engineering Platform List followers of the authenticated user description: Lists the people following the authenticated user. tags: - Users operationId: users/list-followers-for-authenticated-user externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/followers#list-followers-of-the-authenticated-user parameters: - $ref: '#/components/parameters/per-page' - $ref: '#/components/parameters/page' responses: '200': description: Response content: application/json: schema: type: array items: $ref: '#/components/schemas/simple-user' examples: default: $ref: '#/components/examples/simple-user-items' headers: Link: $ref: '#/components/headers/link' '304': $ref: '#/components/responses/not_modified' '403': $ref: '#/components/responses/forbidden' '401': $ref: '#/components/responses/requires_authentication' x-github: githubCloudOnly: false enabledForGitHubApps: false category: users subcategory: followers /user/following: get: summary: APIs.io Engineering Platform List the people the authenticated user follows description: Lists the people who the authenticated user follows. tags: - Users operationId: users/list-followed-by-authenticated-user externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/followers#list-the-people-the-authenticated-user-follows parameters: - $ref: '#/components/parameters/per-page' - $ref: '#/components/parameters/page' responses: '200': description: Response content: application/json: schema: type: array items: $ref: '#/components/schemas/simple-user' examples: default: $ref: '#/components/examples/simple-user-items' headers: Link: $ref: '#/components/headers/link' '304': $ref: '#/components/responses/not_modified' '403': $ref: '#/components/responses/forbidden' '401': $ref: '#/components/responses/requires_authentication' x-github: githubCloudOnly: false enabledForGitHubApps: false category: users subcategory: followers /user/following/{username}: get: summary: APIs.io Engineering Platform Check if a person is followed by the authenticated user description: '' tags: - Users operationId: users/check-person-is-followed-by-authenticated externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/followers#check-if-a-person-is-followed-by-the-authenticated-user parameters: - $ref: '#/components/parameters/username' responses: '204': description: if the person is followed by the authenticated user '404': description: if the person is not followed by the authenticated user content: application/json: schema: $ref: '#/components/schemas/basic-error' '304': $ref: '#/components/responses/not_modified' '403': $ref: '#/components/responses/forbidden' '401': $ref: '#/components/responses/requires_authentication' x-github: githubCloudOnly: false enabledForGitHubApps: false category: users subcategory: followers put: summary: APIs.io Engineering Platform Follow a user description: 'Note that you''ll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://docs.github.com/enterprise-server@3.9/rest/guides/getting-started-with-the-rest-api#http-method)." OAuth app tokens and personal access tokens (classic) need the `user:follow` scope to use this endpoint.' tags: - Users operationId: users/follow externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/followers#follow-a-user parameters: - $ref: '#/components/parameters/username' responses: '204': description: Response '304': $ref: '#/components/responses/not_modified' '404': $ref: '#/components/responses/not_found' '403': $ref: '#/components/responses/forbidden' '401': $ref: '#/components/responses/requires_authentication' x-github: githubCloudOnly: false enabledForGitHubApps: false category: users subcategory: followers delete: summary: APIs.io Engineering Platform Unfollow a user description: OAuth app tokens and personal access tokens (classic) need the `user:follow` scope to use this endpoint. tags: - Users operationId: users/unfollow externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/followers#unfollow-a-user parameters: - $ref: '#/components/parameters/username' responses: '204': description: Response '304': $ref: '#/components/responses/not_modified' '404': $ref: '#/components/responses/not_found' '403': $ref: '#/components/responses/forbidden' '401': $ref: '#/components/responses/requires_authentication' x-github: githubCloudOnly: false enabledForGitHubApps: false category: users subcategory: followers /user/gpg_keys: get: summary: APIs.io Engineering Platform List GPG keys for the authenticated user description: 'Lists the current user''s GPG keys. OAuth app tokens and personal access tokens (classic) need the `read:gpg_key` scope to use this endpoint.' tags: - Users operationId: users/list-gpg-keys-for-authenticated-user externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/gpg-keys#list-gpg-keys-for-the-authenticated-user parameters: - $ref: '#/components/parameters/per-page' - $ref: '#/components/parameters/page' responses: '200': description: Response content: application/json: schema: type: array items: $ref: '#/components/schemas/gpg-key' examples: default: $ref: '#/components/examples/gpg-key-items' headers: Link: $ref: '#/components/headers/link' '304': $ref: '#/components/responses/not_modified' '404': $ref: '#/components/responses/not_found' '403': $ref: '#/components/responses/forbidden' '401': $ref: '#/components/responses/requires_authentication' x-github: githubCloudOnly: false enabledForGitHubApps: false category: users subcategory: gpg-keys post: summary: APIs.io Engineering Platform Create a GPG key for the authenticated user description: 'Adds a GPG key to the authenticated user''s GitHub account. OAuth app tokens and personal access tokens (classic) need the `write:gpg_key` scope to use this endpoint.' operationId: users/create-gpg-key-for-authenticated-user tags: - Users externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/gpg-keys#create-a-gpg-key-for-the-authenticated-user parameters: [] requestBody: required: true content: application/json: schema: properties: name: description: A descriptive name for the new key. type: string armored_public_key: description: A GPG key in ASCII-armored format. type: string type: object required: - armored_public_key examples: default: value: name: Octocat's GPG Key armored_public_key: '-----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1 mQINBFnZ2ZIBEADQ2Z7Z7 -----END PGP PUBLIC KEY BLOCK-----' responses: '201': description: Response content: application/json: schema: $ref: '#/components/schemas/gpg-key' examples: default: $ref: '#/components/examples/gpg-key' '422': $ref: '#/components/responses/validation_failed' '304': $ref: '#/components/responses/not_modified' '404': $ref: '#/components/responses/not_found' '403': $ref: '#/components/responses/forbidden' '401': $ref: '#/components/responses/requires_authentication' x-github: githubCloudOnly: false enabledForGitHubApps: false category: users subcategory: gpg-keys /user/gpg_keys/{gpg_key_id}: get: summary: APIs.io Engineering Platform Get a GPG key for the authenticated user description: 'View extended details for a single GPG key. OAuth app tokens and personal access tokens (classic) need the `read:gpg_key` scope to use this endpoint.' tags: - Users operationId: users/get-gpg-key-for-authenticated-user externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/gpg-keys#get-a-gpg-key-for-the-authenticated-user parameters: - $ref: '#/components/parameters/gpg-key-id' responses: '200': description: Response content: application/json: schema: $ref: '#/components/schemas/gpg-key' examples: default: $ref: '#/components/examples/gpg-key' '404': $ref: '#/components/responses/not_found' '304': $ref: '#/components/responses/not_modified' '403': $ref: '#/components/responses/forbidden' '401': $ref: '#/components/responses/requires_authentication' x-github: githubCloudOnly: false enabledForGitHubApps: false category: users subcategory: gpg-keys delete: summary: APIs.io Engineering Platform Delete a GPG key for the authenticated user description: 'Removes a GPG key from the authenticated user''s GitHub account. OAuth app tokens and personal access tokens (classic) need the `admin:gpg_key` scope to use this endpoint.' tags: - Users operationId: users/delete-gpg-key-for-authenticated-user externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/gpg-keys#delete-a-gpg-key-for-the-authenticated-user parameters: - $ref: '#/components/parameters/gpg-key-id' responses: '204': description: Response '404': $ref: '#/components/responses/not_found' '422': $ref: '#/components/responses/validation_failed' '304': $ref: '#/components/responses/not_modified' '403': $ref: '#/components/responses/forbidden' '401': $ref: '#/components/responses/requires_authentication' x-github: githubCloudOnly: false enabledForGitHubApps: false category: users subcategory: gpg-keys /user/keys: get: summary: APIs.io Engineering Platform List public SSH keys for the authenticated user description: 'Lists the public SSH keys for the authenticated user''s GitHub account. OAuth app tokens and personal access tokens (classic) need the `read:public_key` scope to use this endpoint.' tags: - Users operationId: users/list-public-ssh-keys-for-authenticated-user externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/keys#list-public-ssh-keys-for-the-authenticated-user parameters: - $ref: '#/components/parameters/per-page' - $ref: '#/components/parameters/page' responses: '200': description: Response content: application/json: schema: type: array items: $ref: '#/components/schemas/key' examples: default: $ref: '#/components/examples/key-items' headers: Link: $ref: '#/components/headers/link' '304': $ref: '#/components/responses/not_modified' '404': $ref: '#/components/responses/not_found' '403': $ref: '#/components/responses/forbidden' '401': $ref: '#/components/responses/requires_authentication' x-github: githubCloudOnly: false enabledForGitHubApps: false category: users subcategory: keys post: summary: APIs.io Engineering Platform Create a public SSH key for the authenticated user description: 'Adds a public SSH key to the authenticated user''s GitHub account. OAuth app tokens and personal access tokens (classic) need the `write:gpg_key` scope to use this endpoint.' operationId: users/create-public-ssh-key-for-authenticated-user tags: - Users externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/keys#create-a-public-ssh-key-for-the-authenticated-user parameters: [] requestBody: required: true content: application/json: schema: properties: title: description: A descriptive name for the new key. type: string example: Personal MacBook Air key: description: The public SSH key to add to your GitHub account. type: string pattern: '^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) ' required: - key type: object examples: default: value: title: ssh-rsa AAAAB3NzaC1yc2EAAA key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 responses: '201': description: Response content: application/json: schema: $ref: '#/components/schemas/key' examples: default: $ref: '#/components/examples/key' '422': $ref: '#/components/responses/validation_failed' '304': $ref: '#/components/responses/not_modified' '404': $ref: '#/components/responses/not_found' '403': $ref: '#/components/responses/forbidden' '401': $ref: '#/components/responses/requires_authentication' x-github: githubCloudOnly: false enabledForGitHubApps: false category: users subcategory: keys /user/keys/{key_id}: get: summary: APIs.io Engineering Platform Get a public SSH key for the authenticated user description: 'View extended details for a single public SSH key. OAuth app tokens and personal access tokens (classic) need the `read:public_key` scope to use this endpoint.' tags: - Users operationId: users/get-public-ssh-key-for-authenticated-user externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/keys#get-a-public-ssh-key-for-the-authenticated-user parameters: - $ref: '#/components/parameters/key-id' responses: '200': description: Response content: application/json: schema: $ref: '#/components/schemas/key' examples: default: $ref: '#/components/examples/key' '404': $ref: '#/components/responses/not_found' '304': $ref: '#/components/responses/not_modified' '403': $ref: '#/components/responses/forbidden' '401': $ref: '#/components/responses/requires_authentication' x-github: githubCloudOnly: false enabledForGitHubApps: false category: users subcategory: keys delete: summary: APIs.io Engineering Platform Delete a public SSH key for the authenticated user description: 'Removes a public SSH key from the authenticated user''s GitHub account. OAuth app tokens and personal access tokens (classic) need the `admin:public_key` scope to use this endpoint.' tags: - Users operationId: users/delete-public-ssh-key-for-authenticated-user externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/keys#delete-a-public-ssh-key-for-the-authenticated-user parameters: - $ref: '#/components/parameters/key-id' responses: '204': description: Response '304': $ref: '#/components/responses/not_modified' '404': $ref: '#/components/responses/not_found' '403': $ref: '#/components/responses/forbidden' '401': $ref: '#/components/responses/requires_authentication' x-github: githubCloudOnly: false enabledForGitHubApps: false category: users subcategory: keys /user/public_emails: get: summary: APIs.io Engineering Platform List public email addresses for the authenticated user description: 'Lists your publicly visible email address, which you can set with the [Set primary email visibility for the authenticated user](https://docs.github.com/enterprise-server@3.9/rest/users/emails#set-primary-email-visibility-for-the-authenticated-user) endpoint. OAuth app tokens and personal access tokens (classic) need the `user:email` scope to use this endpoint.' tags: - Users operationId: users/list-public-emails-for-authenticated-user externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/emails#list-public-email-addresses-for-the-authenticated-user parameters: - $ref: '#/components/parameters/per-page' - $ref: '#/components/parameters/page' responses: '200': description: Response content: application/json: schema: type: array items: $ref: '#/components/schemas/email' examples: default: $ref: '#/components/examples/email-items-2' headers: Link: $ref: '#/components/headers/link' '304': $ref: '#/components/responses/not_modified' '404': $ref: '#/components/responses/not_found' '403': $ref: '#/components/responses/forbidden' '401': $ref: '#/components/responses/requires_authentication' x-github: githubCloudOnly: false enabledForGitHubApps: false category: users subcategory: emails /user/social_accounts: get: summary: APIs.io Engineering Platform List social accounts for the authenticated user description: Lists all of your social accounts. tags: - Users operationId: users/list-social-accounts-for-authenticated-user externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/social-accounts#list-social-accounts-for-the-authenticated-user parameters: - $ref: '#/components/parameters/per-page' - $ref: '#/components/parameters/page' responses: '200': description: Response content: application/json: schema: type: array items: $ref: '#/components/schemas/social-account' examples: default: $ref: '#/components/examples/social-account-items' headers: Link: $ref: '#/components/headers/link' '304': $ref: '#/components/responses/not_modified' '404': $ref: '#/components/responses/not_found' '403': $ref: '#/components/responses/forbidden' '401': $ref: '#/components/responses/requires_authentication' x-github: githubCloudOnly: false enabledForGitHubApps: false category: users subcategory: social-accounts post: summary: APIs.io Engineering Platform Add social accounts for the authenticated user description: 'Add one or more social accounts to the authenticated user''s profile. OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint.' tags: - Users operationId: users/add-social-account-for-authenticated-user externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/social-accounts#add-social-accounts-for-the-authenticated-user parameters: [] requestBody: required: true content: application/json: schema: type: object properties: account_urls: description: Full URLs for the social media profiles to add. type: array items: type: string example: https://twitter.com/github example: [] required: - account_urls example: account_urls: - https://www.linkedin.com/company/github/ - https://twitter.com/github examples: default: summary: Adding multiple social accounts value: account_urls: - https://facebook.com/GitHub - https://www.youtube.com/@GitHub responses: '201': description: Response content: application/json: schema: type: array items: $ref: '#/components/schemas/social-account' examples: default: $ref: '#/components/examples/social-account-items' '422': $ref: '#/components/responses/validation_failed' '304': $ref: '#/components/responses/not_modified' '404': $ref: '#/components/responses/not_found' '403': $ref: '#/components/responses/forbidden' '401': $ref: '#/components/responses/requires_authentication' x-github: githubCloudOnly: false enabledForGitHubApps: true category: users subcategory: social-accounts delete: summary: APIs.io Engineering Platform Delete social accounts for the authenticated user description: 'Deletes one or more social accounts from the authenticated user''s profile. OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint.' tags: - Users operationId: users/delete-social-account-for-authenticated-user externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/social-accounts#delete-social-accounts-for-the-authenticated-user parameters: [] requestBody: required: true content: application/json: schema: type: object properties: account_urls: description: Full URLs for the social media profiles to delete. type: array items: type: string example: https://twitter.com/github example: [] required: - account_urls example: account_urls: - https://www.linkedin.com/company/github/ - https://twitter.com/github examples: default: summary: Deleting multiple social accounts value: account_urls: - https://facebook.com/GitHub - https://www.youtube.com/@GitHub responses: '204': description: Response '422': $ref: '#/components/responses/validation_failed' '304': $ref: '#/components/responses/not_modified' '404': $ref: '#/components/responses/not_found' '403': $ref: '#/components/responses/forbidden' '401': $ref: '#/components/responses/requires_authentication' x-github: githubCloudOnly: false enabledForGitHubApps: true category: users subcategory: social-accounts /user/ssh_signing_keys: get: summary: APIs.io Engineering Platform List SSH signing keys for the authenticated user description: 'Lists the SSH signing keys for the authenticated user''s GitHub account. OAuth app tokens and personal access tokens (classic) need the `read:ssh_signing_key` scope to use this endpoint.' tags: - Users operationId: users/list-ssh-signing-keys-for-authenticated-user externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/ssh-signing-keys#list-ssh-signing-keys-for-the-authenticated-user parameters: - $ref: '#/components/parameters/per-page' - $ref: '#/components/parameters/page' responses: '200': description: Response content: application/json: schema: type: array items: $ref: '#/components/schemas/ssh-signing-key' examples: default: $ref: '#/components/examples/ssh-signing-key-items' headers: Link: $ref: '#/components/headers/link' '304': $ref: '#/components/responses/not_modified' '404': $ref: '#/components/responses/not_found' '403': $ref: '#/components/responses/forbidden' '401': $ref: '#/components/responses/requires_authentication' x-github: githubCloudOnly: false enabledForGitHubApps: false previews: [] category: users subcategory: ssh-signing-keys post: summary: APIs.io Engineering Platform Create a SSH signing key for the authenticated user description: 'Creates an SSH signing key for the authenticated user''s GitHub account. OAuth app tokens and personal access tokens (classic) need the `write:ssh_signing_key` scope to use this endpoint.' operationId: users/create-ssh-signing-key-for-authenticated-user tags: - Users externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/ssh-signing-keys#create-a-ssh-signing-key-for-the-authenticated-user parameters: [] requestBody: required: true content: application/json: schema: properties: title: description: A descriptive name for the new key. type: string example: Personal MacBook Air key: description: The public SSH key to add to your GitHub account. For more information, see "[Checking for existing SSH keys](https://docs.github.com/enterprise-server@3.9/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys)." type: string pattern: '^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) |^(sk-ssh-ed25519|sk-ecdsa-sha2-nistp256)@openssh.com ' required: - key type: object examples: default: value: key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 title: ssh-rsa AAAAB3NzaC1yc2EAAA responses: '201': description: Response content: application/json: schema: $ref: '#/components/schemas/ssh-signing-key' examples: default: $ref: '#/components/examples/ssh-signing-key' '422': $ref: '#/components/responses/validation_failed' '304': $ref: '#/components/responses/not_modified' '404': $ref: '#/components/responses/not_found' '403': $ref: '#/components/responses/forbidden' '401': $ref: '#/components/responses/requires_authentication' x-github: githubCloudOnly: false enabledForGitHubApps: false category: users subcategory: ssh-signing-keys /user/ssh_signing_keys/{ssh_signing_key_id}: get: summary: APIs.io Engineering Platform Get an SSH signing key for the authenticated user description: 'Gets extended details for an SSH signing key. OAuth app tokens and personal access tokens (classic) need the `read:ssh_signing_key` scope to use this endpoint.' tags: - Users operationId: users/get-ssh-signing-key-for-authenticated-user externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/ssh-signing-keys#get-an-ssh-signing-key-for-the-authenticated-user parameters: - $ref: '#/components/parameters/ssh-signing-key-id' responses: '200': description: Response content: application/json: schema: $ref: '#/components/schemas/ssh-signing-key' examples: default: $ref: '#/components/examples/ssh-signing-key' '404': $ref: '#/components/responses/not_found' '304': $ref: '#/components/responses/not_modified' '403': $ref: '#/components/responses/forbidden' '401': $ref: '#/components/responses/requires_authentication' x-github: githubCloudOnly: false enabledForGitHubApps: false category: users subcategory: ssh-signing-keys delete: summary: APIs.io Engineering Platform Delete an SSH signing key for the authenticated user description: 'Deletes an SSH signing key from the authenticated user''s GitHub account. OAuth app tokens and personal access tokens (classic) need the `admin:ssh_signing_key` scope to use this endpoint.' tags: - Users operationId: users/delete-ssh-signing-key-for-authenticated-user externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/ssh-signing-keys#delete-an-ssh-signing-key-for-the-authenticated-user parameters: - $ref: '#/components/parameters/ssh-signing-key-id' responses: '204': description: Response '304': $ref: '#/components/responses/not_modified' '404': $ref: '#/components/responses/not_found' '403': $ref: '#/components/responses/forbidden' '401': $ref: '#/components/responses/requires_authentication' x-github: githubCloudOnly: false enabledForGitHubApps: false category: users subcategory: ssh-signing-keys /user/{account_id}: get: summary: APIs.io Engineering Platform Get a user using their ID description: 'Provides publicly available information about someone with a GitHub account. This method takes their durable user `ID` instead of their `login`, which can change over time. The `email` key in the following response is the publicly visible email address from your GitHub Enterprise Server [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub Enterprise Server. For more information, see [Authentication](https://docs.github.com/enterprise-server@3.9/rest/guides/getting-started-with-the-rest-api#authentication). The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see "[Emails API](https://docs.github.com/enterprise-server@3.9/rest/users/emails)".' tags: - Users operationId: users/get-by-id externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/users#get-a-user-using-their-id parameters: - $ref: '#/components/parameters/account-id' responses: '200': description: Response content: application/json: schema: oneOf: - $ref: '#/components/schemas/private-user' - $ref: '#/components/schemas/public-user' examples: default-response: $ref: '#/components/examples/public-user-default-response' response-with-git-hub-plan-information: $ref: '#/components/examples/public-user-response-with-git-hub-plan-information' '404': $ref: '#/components/responses/not_found' x-github: githubCloudOnly: false enabledForGitHubApps: true category: users subcategory: users /users: get: summary: APIs.io Engineering Platform List users description: 'Lists all users, in the order that they signed up on GitHub Enterprise Server. This list includes personal user accounts and organization accounts. Note: Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/enterprise-server@3.9/rest/guides/using-pagination-in-the-rest-api#using-link-headers) to get the URL for the next page of users.' tags: - Users operationId: users/list externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/users#list-users parameters: - $ref: '#/components/parameters/since-user' - $ref: '#/components/parameters/per-page' responses: '200': description: Response content: application/json: schema: type: array items: $ref: '#/components/schemas/simple-user' examples: default: $ref: '#/components/examples/simple-user-items' headers: Link: example: ; rel="next" schema: type: string '304': $ref: '#/components/responses/not_modified' x-github: githubCloudOnly: false enabledForGitHubApps: true category: users subcategory: users /users/{username}: get: summary: APIs.io Engineering Platform Get a user description: 'Provides publicly available information about someone with a GitHub account. The `email` key in the following response is the publicly visible email address from your GitHub Enterprise Server [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub Enterprise Server. For more information, see [Authentication](https://docs.github.com/enterprise-server@3.9/rest/guides/getting-started-with-the-rest-api#authentication). The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see "[Emails API](https://docs.github.com/enterprise-server@3.9/rest/users/emails)".' tags: - Users operationId: users/get-by-username externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/users#get-a-user parameters: - $ref: '#/components/parameters/username' responses: '200': description: Response content: application/json: schema: oneOf: - $ref: '#/components/schemas/private-user' - $ref: '#/components/schemas/public-user' examples: default-response: $ref: '#/components/examples/public-user-default-response' response-with-git-hub-plan-information: $ref: '#/components/examples/public-user-response-with-git-hub-plan-information' '404': $ref: '#/components/responses/not_found' x-github: githubCloudOnly: false enabledForGitHubApps: true category: users subcategory: users /users/{username}/followers: get: summary: APIs.io Engineering Platform List followers of a user description: Lists the people following the specified user. tags: - Users operationId: users/list-followers-for-user externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/followers#list-followers-of-a-user parameters: - $ref: '#/components/parameters/username' - $ref: '#/components/parameters/per-page' - $ref: '#/components/parameters/page' responses: '200': description: Response content: application/json: schema: type: array items: $ref: '#/components/schemas/simple-user' examples: default: $ref: '#/components/examples/simple-user-items' headers: Link: $ref: '#/components/headers/link' x-github: githubCloudOnly: false enabledForGitHubApps: true category: users subcategory: followers /users/{username}/following: get: summary: APIs.io Engineering Platform List the people a user follows description: Lists the people who the specified user follows. tags: - Users operationId: users/list-following-for-user externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/followers#list-the-people-a-user-follows parameters: - $ref: '#/components/parameters/username' - $ref: '#/components/parameters/per-page' - $ref: '#/components/parameters/page' responses: '200': description: Response content: application/json: schema: type: array items: $ref: '#/components/schemas/simple-user' examples: default: $ref: '#/components/examples/simple-user-items' headers: Link: $ref: '#/components/headers/link' x-github: githubCloudOnly: false enabledForGitHubApps: true category: users subcategory: followers /users/{username}/following/{target_user}: get: summary: APIs.io Engineering Platform Check if a user follows another user description: '' tags: - Users operationId: users/check-following-for-user externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/followers#check-if-a-user-follows-another-user parameters: - $ref: '#/components/parameters/username' - name: target_user in: path required: true schema: type: string responses: '204': description: if the user follows the target user '404': description: if the user does not follow the target user x-github: githubCloudOnly: false enabledForGitHubApps: true category: users subcategory: followers /users/{username}/gpg_keys: get: summary: APIs.io Engineering Platform List GPG keys for a user description: Lists the GPG keys for a user. This information is accessible by anyone. tags: - Users operationId: users/list-gpg-keys-for-user externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/gpg-keys#list-gpg-keys-for-a-user parameters: - $ref: '#/components/parameters/username' - $ref: '#/components/parameters/per-page' - $ref: '#/components/parameters/page' responses: '200': description: Response content: application/json: schema: type: array items: $ref: '#/components/schemas/gpg-key' examples: default: $ref: '#/components/examples/gpg-key-items' headers: Link: $ref: '#/components/headers/link' x-github: githubCloudOnly: false enabledForGitHubApps: true category: users subcategory: gpg-keys /users/{username}/hovercard: get: summary: APIs.io Engineering Platform Get contextual information for a user description: "Provides hovercard information. You can find out more about someone in relation to their pull requests, issues, repositories, and organizations.\n\n The `subject_type` and `subject_id` parameters provide context for the person's hovercard, which returns more information than without the parameters. For example, if you wanted to find out more about `octocat` who owns the `Spoon-Knife` repository, you would use a `subject_type` value of `repository` and a `subject_id` value of `1300192` (the ID of the `Spoon-Knife` repository).\n\nOAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint." tags: - Users operationId: users/get-context-for-user externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/users#get-contextual-information-for-a-user parameters: - $ref: '#/components/parameters/username' - name: subject_type description: Identifies which additional information you'd like to receive about the person's hovercard. Can be `organization`, `repository`, `issue`, `pull_request`. **Required** when using `subject_id`. in: query required: false schema: type: string enum: - organization - repository - issue - pull_request - name: subject_id description: Uses the ID for the `subject_type` you specified. **Required** when using `subject_type`. in: query required: false schema: type: string responses: '200': description: Response content: application/json: schema: $ref: '#/components/schemas/hovercard' examples: default: $ref: '#/components/examples/hovercard' '404': $ref: '#/components/responses/not_found' '422': $ref: '#/components/responses/validation_failed' x-github: githubCloudOnly: false enabledForGitHubApps: false category: users subcategory: users /users/{username}/keys: get: summary: APIs.io Engineering Platform List public keys for a user description: Lists the _verified_ public SSH keys for a user. This is accessible by anyone. tags: - Users operationId: users/list-public-keys-for-user externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/keys#list-public-keys-for-a-user parameters: - $ref: '#/components/parameters/username' - $ref: '#/components/parameters/per-page' - $ref: '#/components/parameters/page' responses: '200': description: Response content: application/json: schema: type: array items: $ref: '#/components/schemas/key-simple' examples: default: $ref: '#/components/examples/key-simple-items' headers: Link: $ref: '#/components/headers/link' x-github: githubCloudOnly: false enabledForGitHubApps: true category: users subcategory: keys /users/{username}/social_accounts: get: summary: APIs.io Engineering Platform List social accounts for a user description: Lists social media accounts for a user. This endpoint is accessible by anyone. tags: - Users operationId: users/list-social-accounts-for-user externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/social-accounts#list-social-accounts-for-a-user parameters: - $ref: '#/components/parameters/username' - $ref: '#/components/parameters/per-page' - $ref: '#/components/parameters/page' responses: '200': description: Response content: application/json: schema: type: array items: $ref: '#/components/schemas/social-account' examples: default: $ref: '#/components/examples/social-account-items' headers: Link: $ref: '#/components/headers/link' x-github: githubCloudOnly: false enabledForGitHubApps: true category: users subcategory: social-accounts /users/{username}/ssh_signing_keys: get: summary: APIs.io Engineering Platform List SSH signing keys for a user description: Lists the SSH signing keys for a user. This operation is accessible by anyone. tags: - Users operationId: users/list-ssh-signing-keys-for-user externalDocs: description: API method documentation url: https://docs.github.com/enterprise-server@3.9/rest/users/ssh-signing-keys#list-ssh-signing-keys-for-a-user parameters: - $ref: '#/components/parameters/username' - $ref: '#/components/parameters/per-page' - $ref: '#/components/parameters/page' responses: '200': description: Response content: application/json: schema: type: array items: $ref: '#/components/schemas/ssh-signing-key' examples: default: $ref: '#/components/examples/ssh-signing-key-items' headers: Link: $ref: '#/components/headers/link' x-github: githubCloudOnly: false enabledForGitHubApps: true category: users subcategory: ssh-signing-keys components: examples: ssh-signing-key-items: value: - key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 id: 2 url: https://api.github.com/user/keys/2 title: ssh-rsa AAAAB3NzaC1yc2EAAA created_at: '2020-06-11T21:31:57Z' - key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJy931234 id: 3 url: https://api.github.com/user/keys/3 title: ssh-rsa AAAAB3NzaC1yc2EAAB created_at: '2020-07-11T21:31:57Z' private-user-response-with-public-profile-information: summary: Response with public profile information value: login: octocat id: 1 node_id: MDQ6VXNlcjE= avatar_url: https://github.com/images/error/octocat_happy.gif gravatar_id: '' url: https://api.github.com/users/octocat html_url: https://github.com/octocat followers_url: https://api.github.com/users/octocat/followers following_url: https://api.github.com/users/octocat/following{/other_user} gists_url: https://api.github.com/users/octocat/gists{/gist_id} starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo} subscriptions_url: https://api.github.com/users/octocat/subscriptions organizations_url: https://api.github.com/users/octocat/orgs repos_url: https://api.github.com/users/octocat/repos events_url: https://api.github.com/users/octocat/events{/privacy} received_events_url: https://api.github.com/users/octocat/received_events type: User site_admin: false name: monalisa octocat company: GitHub blog: https://github.com/blog location: San Francisco email: octocat@github.com hireable: false bio: There once was... public_repos: 2 public_gists: 1 followers: 20 following: 0 created_at: '2008-01-14T04:33:35Z' updated_at: '2008-01-14T04:33:35Z' simple-user-items: value: - login: octocat id: 1 node_id: MDQ6VXNlcjE= avatar_url: https://github.com/images/error/octocat_happy.gif gravatar_id: '' url: https://api.github.com/users/octocat html_url: https://github.com/octocat followers_url: https://api.github.com/users/octocat/followers following_url: https://api.github.com/users/octocat/following{/other_user} gists_url: https://api.github.com/users/octocat/gists{/gist_id} starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo} subscriptions_url: https://api.github.com/users/octocat/subscriptions organizations_url: https://api.github.com/users/octocat/orgs repos_url: https://api.github.com/users/octocat/repos events_url: https://api.github.com/users/octocat/events{/privacy} received_events_url: https://api.github.com/users/octocat/received_events type: User site_admin: false email-items-2: value: - email: octocat@github.com verified: true primary: true visibility: public gpg-key: value: id: 3 name: Octocat's GPG Key primary_key_id: 2 key_id: 3262EFF25BA0D270 public_key: xsBNBFayYZ... emails: - email: octocat@users.noreply.github.com verified: true subkeys: - id: 4 primary_key_id: 3 key_id: 4A595D4C72EE49C7 public_key: zsBNBFayYZ... emails: [] can_sign: false can_encrypt_comms: true can_encrypt_storage: true can_certify: false created_at: '2016-03-24T11:31:04-06:00' expires_at: '2016-03-24T11:31:04-07:00' revoked: false can_sign: true can_encrypt_comms: false can_encrypt_storage: false can_certify: true created_at: '2016-03-24T11:31:04-06:00' expires_at: '2016-03-24T11:31:04-07:00' revoked: false raw_key: '"-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: GnuPG v2\n\nmQENBFayYZ0BCAC4hScoJXXpyR+MXGcrBxElqw3FzCVvkViuyeko+Jp76QJhg8kr\nucRTxbnOoHfda/FmilEa/wxf9ch5/PSrrL26FxEoPHhJolp8fnIDLQeITn94NYdB\nZtnnEKslpPrG97qSUWIchvyqCPtvOb8+8fWvGx9K/ZWcEEdh1X8+WFR2jMENMeoX\nwxHWQoPnS7LpX/85/M7VUcJxvDVfv+eHsnQupmE5bGarKNih0oMe3LbdN3qA5PTz\nSCm6Iudar1VsQ+xTz08ymL7t4pnEtLguQ7EyatFHCjxNblv5RzxoL0tDgN3HqoDz\nc7TEA+q4RtDQl9amcvQ95emnXmZ974u7UkYdABEBAAG0HlNvbWUgVXNlciA8c29t\nZXVzZXJAZ21haWwuY29tPokBOAQTAQIAIgUCVrJhnQIbAwYLCQgHAwIGFQgCCQoL\nBBYCAwECHgECF4AACgkQMmLv8lug0nAViQgArWjI55+7p48URr2z9Jvak+yrBTx1\nzkufltQAnHTJkq+Kl9dySSmTnOop8o3rE4++IOpYV5Y36PkKf9EZMk4n1RQiDPKE\nAFtRVTkRaoWzOir9KQXJPfhKrl01j/QzY+utfiMvUoBJZ9ybq8Pa885SljW9lbaX\nIYw+hl8ZdJ2KStvGrEyfQvRyq3aN5c9TV//4BdGnwx7Qabq/U+G18lizG6f/yq15\ned7t0KELaCfeKPvytp4VE9/z/Ksah/h3+Qilx07/oG2Ae5kC1bEC9coD/ogPUhbv\nb2bsBIoY9E9YwsLoif2lU+o1t76zLgUktuNscRRUKobW028H1zuFS/XQhrkBDQRW\nsmGdAQgApnyyv3i144OLYy0O4UKQxd3e10Y3WpDwfnGIBefAI1m7RxnUxBag/DsU\n7gi9qLEC4VHSfq4eiNfr1LJOyCL2edTgCWFgBhVjbXjZe6YAOrAnhxwCErnN0Y7N\n6s8wVh9fObSOyf8ZE6G7JeKpcq9Q6gd/KxagfD48a1v+fyRHpyQc6J9pUEmtrDJ7\nBjmsd2VWzLBvNWdHyxDNtZweIaqIO9VUYYpr1mtTliNBOZLUelmgrt7HBRcJpWMA\nS8muVVbuP5MK0trLBq/JB8qUH3zRzB/PhMgzmkIfjEK1VYDWm4E8DYyTWEJcHqkb\neqFsNjrIlwPaA122BWC6gUOPwwH+oQARAQABiQEfBBgBAgAJBQJWsmGdAhsMAAoJ\nEDJi7/JboNJwAyAIALd4xcdmGbZD98gScJzqwzkOMcO8zFHqHNvJ42xIFvGny7c0\n1Rx7iyrdypOby5AxE+viQcjG4rpLZW/xKYBNGrCfDyQO7511I0v8x20EICMlMfD/\nNrWQCzesEPcUlKTP07d+sFyP8AyseOidbzY/92CpskTgdSBjY/ntLSaoknl/fjJE\nQM8OkPqU7IraO1Jzzdnm20d5PZL9+PIwIWdSTedU/vBMTJyNcoqvSfKf1wNC66XP\nhqfYgXJE564AdWZKA3C0IyCqiv+LHwxLnUHio1a4/r91C8KPzxs6tGxRDjXLd7ms\nuYFGWymiUGOE/giHlcxdYcHzwLnPDliMQOLiTkK5AQ0EVuxMygEIAOD+bW1cDTmE\nBxh5JECoqeHuwgl6DlLhnubWPkQ4ZeRzBRAsFcEJQlwlJjrzFDicL+lnm6Qq4tt0\n560TwHdf15/AKTZIZu7H25axvGNzgeaUkJEJdYAq9zTKWwX7wKyzBszi485nQg97\nMfAqwhMpDW0Qqf8+7Ug+WEmfBSGv9uL3aQC6WEeIsHfri0n0n8v4XgwhfShXguxO\nCsOztEsuW7WWKW9P4TngKKv4lCHdPlV6FwxeMzODBJvc2fkHVHnqc0PqszJ5xcF8\n6gZCpMM027SbpeYWCAD5zwJyYP9ntfO1p2HjnQ1dZaP9FeNcO7uIV1Lnd1eGCu6I\nsrVp5k1f3isAEQEAAYkCPgQYAQIACQUCVuxMygIbAgEpCRAyYu/yW6DScMBdIAQZ\nAQIABgUCVuxMygAKCRCKohN4dhq2b4tcCACHxmOHVXNpu47OvUGYQydLgMACUlXN\nlj+HfE0VReqShxdDmpasAY9IRpuMB2RsGK8GbNP+4SlOlAiPf5SMhS7nZNkNDgQQ\naZ3HFpgrFmFwmE10BKT4iQtoxELLM57z0qGOAfTsEjWFQa4sF+6IHAQR/ptkdkkI\nBUEXiMnAwVwBysLIJiLO8qdjB6qp52QkT074JVrwywT/P+DkMfC2k4r/AfEbf6eF\ndmPDuPk6KD87+hJZsSa5MaMUBQVvRO/mgEkhJRITVu58eWGaBOcQJ8gqurhCqM5P\nDfUA4TJ7wiqM6sS764vV1rOioTTXkszzhClQqET7hPVnVQjenYgv0EZHNyQH/1f1\n/CYqvV1vFjM9vJjMbxXsATCkZe6wvBVKD8vLsJAr8N+onKQz+4OPc3kmKq7aESu3\nCi/iuie5KKVwnuNhr9AzT61vEkKxwHcVFEvHB77F6ZAAInhRvjzmQbD2dlPLLQCC\nqDj71ODSSAPTEmUy6969bgD9PfWei7kNkBIx7s3eBv8yzytSc2EcuUgopqFazquw\nFs1+tqGHjBvQfTo6bqbJjp/9Ci2pvde3ElV2rAgUlb3lqXyXjRDqrXosh5GcRPQj\nK8Nhj1BNhnrCVskE4BP0LYbOHuzgm86uXwGCFsY+w2VOsSm16Jx5GHyG5S5WU3+D\nIts/HFYRLiFgDLmTlxo=\n=+OzK\n-----END PGP PUBLIC KEY BLOCK-----"' key: value: key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 id: 2 url: https://api.github.com/user/keys/2 title: ssh-rsa AAAAB3NzaC1yc2EAAA created_at: '2020-06-11T21:31:57Z' verified: false read_only: false social-account-items: value: - provider: twitter url: https://twitter.com/github gpg-key-items: value: - id: 3 name: Octocat's GPG Key primary_key_id: 2 key_id: 3262EFF25BA0D270 public_key: xsBNBFayYZ... emails: - email: octocat@users.noreply.github.com verified: true subkeys: - id: 4 primary_key_id: 3 key_id: 4A595D4C72EE49C7 public_key: zsBNBFayYZ... emails: [] can_sign: false can_encrypt_comms: true can_encrypt_storage: true can_certify: false created_at: '2016-03-24T11:31:04-06:00' expires_at: '2016-03-24T11:31:04-07:00' revoked: false can_sign: true can_encrypt_comms: false can_encrypt_storage: false can_certify: true created_at: '2016-03-24T11:31:04-06:00' expires_at: '2016-03-24T11:31:04-07:00' revoked: false raw_key: string email-items: value: - email: octocat@octocat.org primary: false verified: false visibility: public - email: octocat@github.com primary: false verified: false visibility: null - email: mona@github.com primary: false verified: false visibility: null hovercard: value: contexts: - message: Owns this repository octicon: repo key-simple-items: value: - id: 1 key: ssh-rsa AAA... private-user: value: login: octocat id: 1 node_id: MDQ6VXNlcjE= avatar_url: https://github.com/images/error/octocat_happy.gif gravatar_id: '' url: https://api.github.com/users/octocat html_url: https://github.com/octocat followers_url: https://api.github.com/users/octocat/followers following_url: https://api.github.com/users/octocat/following{/other_user} gists_url: https://api.github.com/users/octocat/gists{/gist_id} starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo} subscriptions_url: https://api.github.com/users/octocat/subscriptions organizations_url: https://api.github.com/users/octocat/orgs repos_url: https://api.github.com/users/octocat/repos events_url: https://api.github.com/users/octocat/events{/privacy} received_events_url: https://api.github.com/users/octocat/received_events type: User site_admin: false name: monalisa octocat company: GitHub blog: https://github.com/blog location: San Francisco email: octocat@github.com hireable: false bio: There once was... public_repos: 2 public_gists: 1 followers: 20 following: 0 created_at: '2008-01-14T04:33:35Z' updated_at: '2008-01-14T04:33:35Z' private_gists: 81 total_private_repos: 100 owned_private_repos: 100 disk_usage: 10000 collaborators: 8 two_factor_authentication: true plan: name: Medium space: 400 private_repos: 20 collaborators: 0 ssh-signing-key: value: key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 id: 2 url: https://api.github.com/user/keys/2 title: ssh-rsa AAAAB3NzaC1yc2EAAA created_at: '2020-06-11T21:31:57Z' key-items: value: - key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 id: 2 url: https://api.github.com/user/keys/2 title: ssh-rsa AAAAB3NzaC1yc2EAAA created_at: '2020-06-11T21:31:57Z' verified: false read_only: false - key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJy931234 id: 3 url: https://api.github.com/user/keys/3 title: ssh-rsa AAAAB3NzaC1yc2EAAB created_at: '2020-07-11T21:31:57Z' verified: false read_only: false public-user-default-response: summary: Default response value: login: octocat id: 1 node_id: MDQ6VXNlcjE= avatar_url: https://github.com/images/error/octocat_happy.gif gravatar_id: '' url: https://api.github.com/users/octocat html_url: https://github.com/octocat followers_url: https://api.github.com/users/octocat/followers following_url: https://api.github.com/users/octocat/following{/other_user} gists_url: https://api.github.com/users/octocat/gists{/gist_id} starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo} subscriptions_url: https://api.github.com/users/octocat/subscriptions organizations_url: https://api.github.com/users/octocat/orgs repos_url: https://api.github.com/users/octocat/repos events_url: https://api.github.com/users/octocat/events{/privacy} received_events_url: https://api.github.com/users/octocat/received_events type: User site_admin: false name: monalisa octocat company: GitHub blog: https://github.com/blog location: San Francisco email: octocat@github.com hireable: false bio: There once was... twitter_username: monatheoctocat public_repos: 2 public_gists: 1 followers: 20 following: 0 created_at: '2008-01-14T04:33:35Z' updated_at: '2008-01-14T04:33:35Z' public-user-response-with-git-hub-plan-information: summary: Response with GitHub plan information value: login: octocat id: 1 node_id: MDQ6VXNlcjE= avatar_url: https://github.com/images/error/octocat_happy.gif gravatar_id: '' url: https://api.github.com/users/octocat html_url: https://github.com/octocat followers_url: https://api.github.com/users/octocat/followers following_url: https://api.github.com/users/octocat/following{/other_user} gists_url: https://api.github.com/users/octocat/gists{/gist_id} starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo} subscriptions_url: https://api.github.com/users/octocat/subscriptions organizations_url: https://api.github.com/users/octocat/orgs repos_url: https://api.github.com/users/octocat/repos events_url: https://api.github.com/users/octocat/events{/privacy} received_events_url: https://api.github.com/users/octocat/received_events type: User site_admin: false name: monalisa octocat company: GitHub blog: https://github.com/blog location: San Francisco email: octocat@github.com hireable: false bio: There once was... twitter_username: monatheoctocat public_repos: 2 public_gists: 1 followers: 20 following: 0 created_at: '2008-01-14T04:33:35Z' updated_at: '2008-01-14T04:33:35Z' plan: name: pro space: 976562499 collaborators: 0 private_repos: 9999 private-user-response-with-public-and-private-profile-information: summary: Response with public and private profile information value: login: octocat id: 1 node_id: MDQ6VXNlcjE= avatar_url: https://github.com/images/error/octocat_happy.gif gravatar_id: '' url: https://api.github.com/users/octocat html_url: https://github.com/octocat followers_url: https://api.github.com/users/octocat/followers following_url: https://api.github.com/users/octocat/following{/other_user} gists_url: https://api.github.com/users/octocat/gists{/gist_id} starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo} subscriptions_url: https://api.github.com/users/octocat/subscriptions organizations_url: https://api.github.com/users/octocat/orgs repos_url: https://api.github.com/users/octocat/repos events_url: https://api.github.com/users/octocat/events{/privacy} received_events_url: https://api.github.com/users/octocat/received_events type: User site_admin: false name: monalisa octocat company: GitHub blog: https://github.com/blog location: San Francisco email: octocat@github.com hireable: false bio: There once was... public_repos: 2 public_gists: 1 followers: 20 following: 0 created_at: '2008-01-14T04:33:35Z' updated_at: '2008-01-14T04:33:35Z' private_gists: 81 total_private_repos: 100 owned_private_repos: 100 disk_usage: 10000 collaborators: 8 two_factor_authentication: true plan: name: Medium space: 400 private_repos: 20 collaborators: 0 responses: forbidden: description: Forbidden content: application/json: schema: $ref: '#/components/schemas/basic-error' not_found: description: Resource not found content: application/json: schema: $ref: '#/components/schemas/basic-error' requires_authentication: description: Requires authentication content: application/json: schema: $ref: '#/components/schemas/basic-error' not_modified: description: Not modified validation_failed: description: Validation failed, or the endpoint has been spammed. content: application/json: schema: $ref: '#/components/schemas/validation-error' parameters: username: name: username description: The handle for the GitHub user account. in: path required: true schema: type: string ssh-signing-key-id: name: ssh_signing_key_id description: The unique identifier of the SSH signing key. in: path required: true schema: type: integer gpg-key-id: name: gpg_key_id description: The unique identifier of the GPG key. in: path required: true schema: type: integer key-id: name: key_id description: The unique identifier of the key. in: path required: true schema: type: integer account-id: name: account_id description: account_id parameter in: path required: true schema: type: integer since-user: name: since description: A user ID. Only return users with an ID greater than this ID. in: query required: false schema: type: integer per-page: name: per_page description: The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.9/rest/using-the-rest-api/using-pagination-in-the-rest-api)." in: query schema: type: integer default: 30 page: name: page description: The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.9/rest/using-the-rest-api/using-pagination-in-the-rest-api)." in: query schema: type: integer default: 1 headers: link: example: ; rel="next", ; rel="last" schema: type: string schemas: gpg-key: title: GPG Key description: A unique encryption key type: object properties: id: type: integer format: int64 example: 3 name: type: string example: Octocat's GPG Key nullable: true primary_key_id: type: integer nullable: true key_id: type: string example: 3262EFF25BA0D270 public_key: type: string example: xsBNBFayYZ... emails: type: array example: - email: octocat@users.noreply.github.com verified: true items: type: object properties: email: type: string verified: type: boolean subkeys: type: array example: - id: 4 primary_key_id: 3 key_id: 4A595D4C72EE49C7 public_key: zsBNBFayYZ... emails: [] can_sign: false can_encrypt_comms: true can_encrypt_storage: true can_certify: false created_at: '2016-03-24T11:31:04-06:00' expires_at: null revoked: false items: type: object properties: id: type: integer format: int64 primary_key_id: type: integer key_id: type: string public_key: type: string emails: type: array items: type: object properties: email: type: string verified: type: boolean subkeys: type: array items: {} can_sign: type: boolean can_encrypt_comms: type: boolean can_encrypt_storage: type: boolean can_certify: type: boolean created_at: type: string expires_at: type: string nullable: true raw_key: type: string nullable: true revoked: type: boolean can_sign: type: boolean example: true can_encrypt_comms: type: boolean can_encrypt_storage: type: boolean can_certify: type: boolean example: true created_at: type: string format: date-time example: '2016-03-24T11:31:04-06:00' expires_at: type: string format: date-time nullable: true revoked: type: boolean example: true raw_key: type: string nullable: true required: - id - primary_key_id - key_id - raw_key - public_key - created_at - expires_at - can_sign - can_encrypt_comms - can_encrypt_storage - can_certify - emails - subkeys - revoked public-user: title: Public User description: Public User type: object properties: login: type: string id: type: integer format: int64 node_id: type: string avatar_url: type: string format: uri gravatar_id: type: string nullable: true url: type: string format: uri html_url: type: string format: uri followers_url: type: string format: uri following_url: type: string gists_url: type: string starred_url: type: string subscriptions_url: type: string format: uri organizations_url: type: string format: uri repos_url: type: string format: uri events_url: type: string received_events_url: type: string format: uri type: type: string site_admin: type: boolean name: type: string nullable: true company: type: string nullable: true blog: type: string nullable: true location: type: string nullable: true email: type: string format: email nullable: true notification_email: type: string format: email nullable: true hireable: type: boolean nullable: true bio: type: string nullable: true twitter_username: type: string nullable: true public_repos: type: integer public_gists: type: integer followers: type: integer following: type: integer created_at: type: string format: date-time updated_at: type: string format: date-time plan: type: object properties: collaborators: type: integer name: type: string space: type: integer private_repos: type: integer required: - collaborators - name - space - private_repos suspended_at: type: string format: date-time nullable: true private_gists: type: integer example: 1 total_private_repos: type: integer example: 2 owned_private_repos: type: integer example: 2 disk_usage: type: integer example: 1 collaborators: type: integer example: 3 required: - avatar_url - events_url - followers_url - following_url - gists_url - gravatar_id - html_url - id - node_id - login - organizations_url - received_events_url - repos_url - site_admin - starred_url - subscriptions_url - type - url - bio - blog - company - email - followers - following - hireable - location - name - public_gists - public_repos - created_at - updated_at additionalProperties: false basic-error: title: Basic Error description: Basic Error type: object properties: message: type: string documentation_url: type: string url: type: string status: type: string ssh-signing-key: title: SSH Signing Key description: A public SSH key used to sign Git commits type: object properties: key: type: string id: type: integer title: type: string created_at: type: string format: date-time required: - key - id - title - created_at validation-error: title: Validation Error description: Validation Error type: object required: - message - documentation_url properties: message: type: string documentation_url: type: string errors: type: array items: type: object required: - code properties: resource: type: string field: type: string message: type: string code: type: string index: type: integer value: oneOf: - type: string nullable: true - type: integer nullable: true - type: array nullable: true items: type: string key-simple: title: Key Simple description: Key Simple type: object properties: id: type: integer key: type: string required: - key - id email: title: Email description: Email type: object properties: email: type: string format: email example: octocat@github.com primary: type: boolean example: true verified: type: boolean example: true visibility: type: string example: public nullable: true required: - email - primary - verified - visibility private-user: title: Private User description: Private User type: object properties: login: type: string example: octocat id: type: integer format: int64 example: 1 node_id: type: string example: MDQ6VXNlcjE= avatar_url: type: string format: uri example: https://github.com/images/error/octocat_happy.gif gravatar_id: type: string example: 41d064eb2195891e12d0413f63227ea7 nullable: true url: type: string format: uri example: https://api.github.com/users/octocat html_url: type: string format: uri example: https://github.com/octocat followers_url: type: string format: uri example: https://api.github.com/users/octocat/followers following_url: type: string example: https://api.github.com/users/octocat/following{/other_user} gists_url: type: string example: https://api.github.com/users/octocat/gists{/gist_id} starred_url: type: string example: https://api.github.com/users/octocat/starred{/owner}{/repo} subscriptions_url: type: string format: uri example: https://api.github.com/users/octocat/subscriptions organizations_url: type: string format: uri example: https://api.github.com/users/octocat/orgs repos_url: type: string format: uri example: https://api.github.com/users/octocat/repos events_url: type: string example: https://api.github.com/users/octocat/events{/privacy} received_events_url: type: string format: uri example: https://api.github.com/users/octocat/received_events type: type: string example: User site_admin: type: boolean name: type: string example: monalisa octocat nullable: true company: type: string example: GitHub nullable: true blog: type: string example: https://github.com/blog nullable: true location: type: string example: San Francisco nullable: true email: type: string format: email example: octocat@github.com nullable: true notification_email: type: string format: email example: octocat@github.com nullable: true hireable: type: boolean nullable: true bio: type: string example: There once was... nullable: true twitter_username: type: string example: monalisa nullable: true public_repos: type: integer example: 2 public_gists: type: integer example: 1 followers: type: integer example: 20 following: type: integer example: 0 created_at: type: string format: date-time example: '2008-01-14T04:33:35Z' updated_at: type: string format: date-time example: '2008-01-14T04:33:35Z' private_gists: type: integer example: 81 total_private_repos: type: integer example: 100 owned_private_repos: type: integer example: 100 disk_usage: type: integer example: 10000 collaborators: type: integer example: 8 two_factor_authentication: type: boolean example: true plan: type: object properties: collaborators: type: integer name: type: string space: type: integer private_repos: type: integer required: - collaborators - name - space - private_repos suspended_at: type: string format: date-time nullable: true business_plus: type: boolean ldap_dn: type: string required: - avatar_url - events_url - followers_url - following_url - gists_url - gravatar_id - html_url - id - node_id - login - organizations_url - received_events_url - repos_url - site_admin - starred_url - subscriptions_url - type - url - bio - blog - company - email - followers - following - hireable - location - name - public_gists - public_repos - created_at - updated_at - collaborators - disk_usage - owned_private_repos - private_gists - total_private_repos - two_factor_authentication simple-user: title: Simple User description: A GitHub user. type: object properties: name: nullable: true type: string email: nullable: true type: string login: type: string example: octocat id: type: integer format: int64 example: 1 node_id: type: string example: MDQ6VXNlcjE= avatar_url: type: string format: uri example: https://github.com/images/error/octocat_happy.gif gravatar_id: type: string example: 41d064eb2195891e12d0413f63227ea7 nullable: true url: type: string format: uri example: https://api.github.com/users/octocat html_url: type: string format: uri example: https://github.com/octocat followers_url: type: string format: uri example: https://api.github.com/users/octocat/followers following_url: type: string example: https://api.github.com/users/octocat/following{/other_user} gists_url: type: string example: https://api.github.com/users/octocat/gists{/gist_id} starred_url: type: string example: https://api.github.com/users/octocat/starred{/owner}{/repo} subscriptions_url: type: string format: uri example: https://api.github.com/users/octocat/subscriptions organizations_url: type: string format: uri example: https://api.github.com/users/octocat/orgs repos_url: type: string format: uri example: https://api.github.com/users/octocat/repos events_url: type: string example: https://api.github.com/users/octocat/events{/privacy} received_events_url: type: string format: uri example: https://api.github.com/users/octocat/received_events type: type: string example: User site_admin: type: boolean starred_at: type: string example: '"2020-07-09T00:17:55Z"' required: - avatar_url - events_url - followers_url - following_url - gists_url - gravatar_id - html_url - id - node_id - login - organizations_url - received_events_url - repos_url - site_admin - starred_url - subscriptions_url - type - url key: title: Key description: Key type: object properties: key: type: string id: type: integer format: int64 url: type: string title: type: string created_at: type: string format: date-time verified: type: boolean read_only: type: boolean required: - key - id - url - title - created_at - verified - read_only social-account: title: Social account description: Social media account type: object properties: provider: type: string example: linkedin url: type: string example: https://www.linkedin.com/company/github/ required: - provider - url hovercard: title: Hovercard description: Hovercard type: object properties: contexts: type: array items: type: object properties: message: type: string octicon: type: string required: - message - octicon required: - contexts securitySchemes: hmac: type: apiKey name: Authorization in: header description: Amazon Signature authorization v4 x-amazon-apigateway-authtype: awsSigv4 externalDocs: description: Amazon Web Services documentation url: https://docs.aws.amazon.com/apigateway/ x-hasEquivalentPaths: true