openapi: 3.0.0
info:
version: '1'
title: Kinde Account API Keys Timezones API
description: '
Provides endpoints to operate on an authenticated user.
## Intro
## How to use
1. Get a user access token - this can be obtained when a user signs in via the methods you''ve setup in Kinde (e.g. Google, passwordless, etc).
2. Call one of the endpoints below using the user access token in the Authorization header as a Bearer token. Typically, you can use the `getToken` command in the relevant SDK.
'
termsOfService: https://docs.kinde.com/trust-center/agreements/terms-of-service/
contact:
name: Kinde Support Team
email: support@kinde.com
url: https://docs.kinde.com
tags:
- name: Timezones
x-displayName: Timezones
paths:
/api/v1/timezones:
servers: []
get:
tags:
- Timezones
operationId: getTimezones
summary: Get timezones
description: "Get a list of timezones and associated timezone keys.\n\n
\n read:timezones\n
\n"
responses:
'200':
description: A list of timezones.
content:
application/json:
schema:
$ref: '#/components/schemas/get_timezones_response'
'400':
$ref: '#/components/responses/bad_request'
'403':
$ref: '#/components/responses/forbidden'
'429':
$ref: '#/components/responses/too_many_requests'
security:
- kindeBearerAuth: []
components:
responses:
too_many_requests:
description: Too many requests. Request was throttled.
content:
application/json:
schema:
$ref: '#/components/schemas/error_response'
bad_request:
description: Invalid request.
content:
application/json:
schema:
$ref: '#/components/schemas/error_response'
forbidden:
description: Unauthorized - invalid credentials.
content:
application/json:
schema:
$ref: '#/components/schemas/error_response'
schemas:
error:
type: object
properties:
code:
type: string
description: Error code.
message:
type: string
description: Error message.
error_response:
type: object
properties:
errors:
type: array
items:
$ref: '#/components/schemas/error'
get_timezones_response:
type: object
properties:
code:
type: string
description: Response code.
example: OK
message:
type: string
description: Response message.
example: Success
timezones:
type: array
items:
type: object
properties:
key:
description: The unique key for the timezone.
type: string
example: london_greenwich_mean_time
name:
type: string
description: The display name for the timezone.
example: London (Greenwich Mean Time) [+01:00]
securitySchemes:
kindeBearerAuth:
description: 'To access these endpoints, you will need to use a user token. This can be obtained when your users sign in via the methods you''ve setup in Kinde (e.g. Google, passwordless, etc). Find this using the getToken command in the relevant SDK.
'
type: http
scheme: bearer
bearerFormat: JWT