API Dashboard

Taffy 3.6.0

Resources:

UserVerifyOTP DELETE PATCH PUT POST GET /user/verify-otp

Request Body:

Loading...

Response:

This resource verifies the user's login and register OTP.

post
Handles user verify by validating email for 150 characters and otp for 6 characters, Verify OTP for max 5 times, generating Token.
required string email
required string otp

UserSettings DELETE PATCH PUT POST GET /user/settings

Request Body:

Loading...

Response:

This resource use for user data settings update

post
This function updates user's settings.
optional boolean notificationsEnabled
optional string themeMode

UserRegister DELETE PATCH PUT POST GET /user/register

Request Body:

Loading...

Response:

This resource handles user registration and OTP generation.

post
Handles user registration by validating username for 50 characters and email for 150 characters, checking uniqueness, generating OTP.
required string username
required string email

UserLogin DELETE PATCH PUT POST GET /user/login

Request Body:

Loading...

Response:

This resource handles user login and OTP generation.

post
Handles user login by validating email for 150 characters, checking if exists, generating OTP.
required string email

UserResource DELETE PATCH PUT POST GET /user

Request Body:

Loading...

Response:

This resource use for user data get, update, and delete.

get
Get authenticated user data and settings
post
Updates user's profile including optional profile picture 'form.profileImage' upload.
required string username
required string email
optional string profilePictureUrl (default: "")

UpdatePracticeSessions DELETE PATCH PUT POST GET /update-practice-sessions/{sessionId}

URI Tokens: (required)

Request Body:

Loading...

Response:

Handles updating an existing practice or challenge session

post
Updates an existing practice or challenge session for the authenticated user
required numeric sessionId
required string sessionDate
required numeric durationMinutes
optional array practiceShots (default: [runtime expression])
optional numeric challengeDurationMinutes
optional numeric challengeMaxShots
optional numeric challengeGoal
optional numeric halfwayMade
optional numeric halfwayMissed
optional numeric halfwayAccuracy

SubscriptionResources DELETE PATCH PUT POST GET /subscription

Request Body:

Loading...

Response:

This resource use for subscription data get.

get
Returns all active subscriptions for public users

Stats DELETE PATCH PUT POST GET /stats

Request Body:

Loading...

Response:

This resource use for stats data get.

get
get stats data.

CreateShot DELETE PATCH PUT POST GET /shot/create

Request Body:

Loading...

Response:

This resource use for shot data add.

post
Create shot.
required String name
required numeric tableDesignId
required String balls
required String connections
optional String difficulty
optional String description
optional String notes
optional String instructions
optional String youtubeUrl
optional numeric youtubeTimeSec

ShotResource DELETE PATCH PUT POST GET /shot/{shotId}

URI Tokens: (required)

Request Body:

Loading...

Response:

This resource use for shot data get, update, and delete.

get
required numeric shotId
post
Update shot.
required numeric shotId
required String name
optional String balls
optional String connections
optional String difficulty
optional String description
optional String notes
optional String instructions
optional String youtubeUrl
optional numeric youtubeTimeSec

TableDesignResource DELETE PATCH PUT POST GET /setting/table-design

Request Body:

Loading...

Response:

This resource use for poll table design data get.

get
Returns table design.

SliderResources DELETE PATCH PUT POST GET /setting/onboarding-slider

Request Body:

Loading...

Response:

This resource use for onboarding slider data get, add, update, and delete.

delete
Deletes a slider by order index from onboarding_sliders. Only admin can perform this action.
required numeric order
get
Returns all onboarding sliders for public users.
post
Handles creation and updating of onboarding slider entries. Validates input, ensures admin authorization, and stores slider data inside the app_settings table under the onboarding_sliders configuration.
required string image
required string title
required string description
optional numeric order (default: 0)

PracticeSessions DELETE PATCH PUT POST GET /practice-sessions

Request Body:

Loading...

Response:

This resource handles practice or challenge session related operations

get
This API will send a list of all the practices and challenges of the selected shot of the logged in user.
required numeric page (default: 1)
required numeric pageSize (default: [runtime expression])
required numeric shotId
post
Handles adding a new practice or challenge session for the authenticated user
required string sessionType
required numeric shotId
required string sessionDate
required numeric durationMinutes
optional array practiceShots (default: [runtime expression])
optional numeric challengeDurationMinutes
optional numeric challengeMaxShots
optional numeric challengeGoal
optional numeric halfwayMade
optional numeric halfwayMissed
optional numeric halfwayAccuracy

Practice DELETE PATCH PUT POST GET /practice

Request Body:

Loading...

Response:

This resource use for user own shots data get.

get
required numeric page (default: 1)
required numeric pageSize (default: [runtime expression])

GoalResource DELETE PATCH PUT POST GET /goal

Request Body:

Loading...

Response:

Save or update the authenticated user's practice goal and milestones.

get
post
required string totalHours
required string targetDate
required numeric daysPerWeek
required numeric hoursPerDay
required numeric minutesPerDay
required numeric hoursPerWeek
required array milestones

GameSessionsResource DELETE PATCH PUT POST GET /games-sessions/{gameId}

URI Tokens: (required)

Request Body:

Loading...

Response:

This resource returns session history for a specific game and user can add and edit sessions.

get
Returns session history for a game. Supports single-session lookup, date range filtering, game type filtering, and pagination.
required numeric gameId
optional numeric page (default: 1)
optional numeric pageSize (default: [runtime expression])
optional numeric gameTypeId (default: 0)
optional string startDate (default: "")
optional string endDate (default: "")
optional numeric gameSessionId (default: 0)
post
Creates a new game session when game_session_id is not provided. Updates the existing session when game_session_id is provided.
required numeric gameId
required numeric gameTypeId
required string sessionDate
required numeric durationMinutes
optional string location (default: "")
optional string opponent (default: "")
optional numeric gameSessionId (default: 0)

GamesResource DELETE PATCH PUT POST GET /games

Request Body:

Loading...

Response:

This resource returns all games with total practice hours for the logged-in user.

get
Returns all active games and the total hours the authenticated user has logged per game.

GameTypesResource DELETE PATCH PUT POST GET /game-types

Request Body:

Loading...

Response:

This resource returns all active game types.

get
Returns all active game types ordered by name.

Dashboard DELETE PATCH PUT POST GET /dashboard

Request Body:

Loading...

Response:

This resource use for dashboard data get.

get

PollBallResource DELETE PATCH PUT POST GET /balls

Request Body:

Loading...

Response:

This resource use for poll balls data get.

get
Returns all poll balls.

LoginGoogle DELETE PATCH PUT POST GET /auth/social/google

Request Body:

Loading...

Response:

Login with Google id_token

post
required string idToken

LoginApple DELETE PATCH PUT POST GET /auth/social/apple

Request Body:

Loading...

Response:

Login with Apple identity token

post
required string identityToken

AuthRefresh DELETE PATCH PUT POST GET /auth/refresh

Request Body:

Loading...

Response:

Refresh access token using refresh token

post
Refresh access token using refresh token
required string refreshToken

Logout DELETE PATCH PUT POST GET /auth/logout

Request Body:

Loading...

Response:

Logout and revoke refresh token

post
Revoke a refresh token and log out user
required string refreshToken

adminAdminVerifyOTP DELETE PATCH PUT POST GET /admin/verify-otp

Request Body:

Loading...

Response:

This resource verifies the admin's login OTP.

post
Handles admin verify by validating email for 150 characters and otp for 6 characters, Verify OTP for max 5 times, generating Token.
required string email
required string otp

adminUserEdit DELETE PATCH PUT POST GET /admin/user-edit/{userId}

URI Tokens: (required)

Request Body:

Loading...

Response:

This resource is used to update all roles and their status except for customers.

get
Get admin user Data.
required numeric userId
post
EDIT users (admin only)
required numeric userId
required string username
required string email
required string phone
required numeric roleId
optional string status
optional boolean notifications
optional string theme

adminUserResource DELETE PATCH PUT POST GET /admin/user

Request Body:

Loading...

Response:

This resource is used to update all roles and their status except for customers.

get
Fetches a paginated list of admin users.
optional numeric page (default: 0)
optional numeric perPage (default: 0)
post
ADD users (admin only)
required string username
required string email
required string phone
required numeric roleId
optional string status
optional boolean notifications
optional string theme

adminAppleDailyDownloads DELETE PATCH PUT POST GET /admin/tasks/apple-daily-downloads/{scheduleKey}

URI Tokens: (required)

Request Body:

Loading...

Response:

This resource will be used to get the app's total downloads and country data.

get
required string scheduleKey

adminSubscriptionEdit DELETE PATCH PUT POST GET /admin/subscription-edit/{subscriptionId}

URI Tokens: (required)

Request Body:

Loading...

Response:

This resource use for subscription data get, update for administrators.

get
Returns subscription data for admin users
required numeric subscriptionId
post
EDIT subscription (admin only)
required numeric subscriptionId
required string name
required numeric monthlyAmount
required numeric yearlyAmount
optional string description (default: "")
optional string currency (default: USD)
optional numeric maxSessions (default: 0)
optional boolean isActive (default: true)
optional array features (default: [runtime expression])

adminSubscriptionResources DELETE PATCH PUT POST GET /admin/subscription

Request Body:

Loading...

Response:

This resource use for subscription data get, add, update, and delete for administrators.

delete
Deletes a subscription by id (admin only)
required numeric subscriptionId
get
Returns all subscriptions for admin users
post
ADD subscription (admin only)
required string name
required numeric monthlyAmount
required numeric yearlyAmount
optional string description (default: "")
optional string currency (default: USD)
optional numeric maxSessions (default: 0)
optional boolean isActive (default: true)
optional array features (default: [runtime expression])

adminAdminLogin DELETE PATCH PUT POST GET /admin/login

Request Body:

Loading...

Response:

This resource handles admin login and OTP generation.

post
Handles admin login by validating email for 150 characters, checking if exists, generating OTP.
required string email

adminDashboard DELETE PATCH PUT POST GET /admin/dashboard

Request Body:

Loading...

Response:

This resource use for admin dashboard data get.

get
GET - Retrieve complete dashboard analytics data Requires: Admin authentication

adminCustomerResource DELETE PATCH PUT POST GET /admin/customer

Request Body:

Loading...

Response:

This resource use for get customers and update customer status.

get
Fetches a paginated list of customers.
optional numeric page (default: 0)
optional numeric perPage (default: 0)

Resources are listed in matching order. From top to bottom, the first URI to match the request is used.