naftiko: 1.0.0-alpha2 info: label: Snapchat Login Kit API — OAuth description: 'Snapchat Login Kit API — OAuth. 2 operations. Lead operation: Authorize a User via Snapchat. Self-contained Naftiko capability covering one Snapchat business surface.' tags: - Snapchat - OAuth created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SNAPCHAT_API_KEY: SNAPCHAT_API_KEY capability: consumes: - type: http namespace: login-kit-oauth baseUri: https://accounts.snapchat.com description: Snapchat Login Kit API — OAuth business capability. Self-contained, no shared references. resources: - name: accounts-oauth2-auth path: /accounts/oauth2/auth operations: - name: authorize method: GET description: Authorize a User via Snapchat outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: client_id in: query type: string description: The OAuth client ID assigned to the application. required: true - name: redirect_uri in: query type: string description: The URI to redirect the user to after authorization. Must match one of the registered redirect URIs. required: true - name: response_type in: query type: string description: The OAuth response type. Use 'code' for authorization code flow or 'token' for implicit flow. required: true - name: scope in: query type: string description: Space-separated list of requested scopes defining what user data the application wants access to. required: true - name: state in: query type: string description: An opaque value used to maintain state between the request and callback for CSRF protection. - name: login-oauth2-access_token path: /login/oauth2/access_token operations: - name: exchangetoken method: POST description: Exchange Authorization Code for Tokens outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.SNAPCHAT_API_KEY}}' exposes: - type: rest namespace: login-kit-oauth-rest port: 8080 description: REST adapter for Snapchat Login Kit API — OAuth. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/accounts/oauth2/auth name: accounts-oauth2-auth description: REST surface for accounts-oauth2-auth. operations: - method: GET name: authorize description: Authorize a User via Snapchat call: login-kit-oauth.authorize with: client_id: rest.client_id redirect_uri: rest.redirect_uri response_type: rest.response_type scope: rest.scope state: rest.state outputParameters: - type: object mapping: $. - path: /v1/login/oauth2/access-token name: login-oauth2-access-token description: REST surface for login-oauth2-access_token. operations: - method: POST name: exchangetoken description: Exchange Authorization Code for Tokens call: login-kit-oauth.exchangetoken with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: login-kit-oauth-mcp port: 9090 transport: http description: MCP adapter for Snapchat Login Kit API — OAuth. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: authorize-user-snapchat description: Authorize a User via Snapchat hints: readOnly: true destructive: false idempotent: true call: login-kit-oauth.authorize with: client_id: tools.client_id redirect_uri: tools.redirect_uri response_type: tools.response_type scope: tools.scope state: tools.state outputParameters: - type: object mapping: $. - name: exchange-authorization-code-tokens description: Exchange Authorization Code for Tokens hints: readOnly: false destructive: false idempotent: false call: login-kit-oauth.exchangetoken with: body: tools.body outputParameters: - type: object mapping: $.