toss-oapi-auth
Installation
SKILL.md
Toss Securities Open API Authentication
Use this skill for the shared authentication and API-access layer. It covers client registration, IP allowlisting, OAuth 2.0 Client Credentials token issuance, safe secret handling, and rate-limit/error handling.
Reference Map
- references/auth-and-access.md: official sources, required setup, headers, rate-limit and error-handling rules.
Workflow
- Confirm that the user has registered an Open API client in Toss Securities WTS and registered the server's egress IP in the allowed-IP list.
- Keep
client_id,client_secret, and access tokens on a trusted server. Useapplication/x-www-form-urlencodedfor the token request and the documented Client Credentials fields. - Read the live
AuthApipage before providing token response fields, expiry/caching behavior, or error-code-specific handling. - Attach the bearer token to every API call. Add the account header only for account-scoped categories; do not invent an account sequence.
- Implement bounded retries: honor
Retry-Afterfor429, use exponential backoff with jitter for retryable failures, and record the APIrequestIdfrom error responses for support.