Surf Session Finder User API

The user API from Surf Session Finder — 9 operation(s) for user.

GitHub OpenAPI

Operations 9

POST /api/send-verification-code Send Verification Code #
GET /api/session-levels Get Session Levels #
GET /api/sessions Get Sessions #
POST /api/sessions/filter Get Sessions Filtered #
POST /api/preferences/add Create User Preference #
POST /api/preferences/get/{guid} Get User Preference By Guid #
DELETE /api/preferences/delete/{guid} Delete Preference By Guid #
POST /api/preference Handle Preference Action #
POST /api/send-test-push Send Test Push #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/surfsessionfinder-com:surfsessionfinder-com-user-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

surfsessionfinder-com-user-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SRF Session Finder User API
  description: API for managing surf session notifications and preferences
  version: 1.0.0
tags:
- name: User
paths:
  /api/send-verification-code:
    post:
      tags:
      - User
      summary: Send Verification Code
      description: Send verification code to email
      operationId: send_verification_code_api_send_verification_code_post
      parameters:
      - name: X-Pool-ID
        in: header
        required: true
        schema:
          type: string
          title: X-Pool-Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmailVerificationRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailVerificationResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/session-levels:
    get:
      tags:
      - User
      summary: Get Session Levels
      description: Get all available session levels
      operationId: get_session_levels_api_session_levels_get
      parameters:
      - name: X-Pool-ID
        in: header
        required: true
        schema:
          type: string
          title: X-Pool-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/sessions:
    get:
      tags:
      - User
      summary: Get Sessions
      description: Get available sessions - basic version without filtering
      operationId: get_sessions_api_sessions_get
      parameters:
      - name: X-Pool-ID
        in: header
        required: true
        schema:
          type: string
          title: X-Pool-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SessionResponse'
                title: Response Get Sessions Api Sessions Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/sessions/filter:
    post:
      tags:
      - User
      summary: Get Sessions Filtered
      description: Get available sessions filtered by preference using notification logic
      operationId: get_sessions_filtered_api_sessions_filter_post
      parameters:
      - name: X-Pool-ID
        in: header
        required: true
        schema:
          type: string
          title: X-Pool-Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserPreferenceRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SessionResponse'
                title: Response Get Sessions Filtered Api Sessions Filter Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/preferences/add:
    post:
      tags:
      - User
      summary: Create User Preference
      description: Create or update user preference with required email verification
      operationId: create_user_preference_api_preferences_add_post
      parameters:
      - name: X-Pool-ID
        in: header
        required: true
        schema:
          type: string
          title: X-Pool-Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserPreferenceRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Create User Preference Api Preferences Add Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/preferences/get/{guid}:
    post:
      tags:
      - User
      summary: Get User Preference By Guid
      description: Get user preference by GUID
      operationId: get_user_preference_by_guid_api_preferences_get__guid__post
      parameters:
      - name: guid
        in: path
        required: true
        schema:
          type: string
          title: Guid
      - name: X-Pool-ID
        in: header
        required: true
        schema:
          type: string
          title: X-Pool-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserPreferenceResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/preferences/delete/{guid}:
    delete:
      tags:
      - User
      summary: Delete Preference By Guid
      description: Delete a user preference by GUID.
      operationId: delete_preference_by_guid_api_preferences_delete__guid__delete
      parameters:
      - name: guid
        in: path
        required: true
        schema:
          type: string
          title: Guid
      - name: X-Pool-ID
        in: header
        required: true
        schema:
          type: string
          title: X-Pool-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/preference:
    post:
      tags:
      - User
      summary: Handle Preference Action
      description: 'Handle preference actions: activate, stop'
      operationId: handle_preference_action_api_preference_post
      parameters:
      - name: pid
        in: query
        required: true
        schema:
          type: string
          description: Preference GUID
          title: Pid
        description: Preference GUID
      - name: action
        in: query
        required: true
        schema:
          type: string
          description: Action to perform
          title: Action
        description: Action to perform
      - name: code
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Verification code (required for activate action)
          title: Code
        description: Verification code (required for activate action)
      - name: in
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          description: Hours to delay (for continue action)
          title: In
        description: Hours to delay (for continue action)
      - name: X-Pool-ID
        in: header
        required: true
        schema:
          type: string
          title: X-Pool-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/send-test-push:
    post:
      tags:
      - User
      summary: Send Test Push
      description: Send a test push notification to the provided FCM token.
      operationId: send_test_push_api_send_test_push_post
      parameters:
      - name: X-Pool-ID
        in: header
        required: true
        schema:
          type: string
          title: X-Pool-Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Body_send_test_push_api_send_test_push_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    EmailVerificationResponse:
      properties:
        message:
          type: string
          title: Message
        expires_in_minutes:
          type: integer
          title: Expires In Minutes
          default: 15
      type: object
      required:
      - message
      title: EmailVerificationResponse
    UserPreferenceResponse:
      properties:
        GUID:
          type: string
          title: Guid
        CHANNEL:
          $ref: '#/components/schemas/ChannelType'
        CHANNEL_USER_IDENTITY:
          type: string
          title: Channel User Identity
        DAYS_AHEAD:
          type: integer
          title: Days Ahead
          default: 0
        FOR_LEVELS:
          items:
            type: string
          type: array
          title: For Levels
        SIDE_PREFERENCE:
          items:
            $ref: '#/components/schemas/SessionSide'
          type: array
          title: Side Preference
          default: []
        PREFERRED_DAY_OF_WEEK:
          items:
            type: integer
          type: array
          title: Preferred Day Of Week
          default:
          - 0
        PREFERRED_TIME_OF_DAY:
          items:
            type: string
          type: array
          title: Preferred Time Of Day
          default: []
        AVAILABLE_MIN:
          type: integer
          title: Available Min
          default: 1
        EXPIRY_PERIOD:
          type: integer
          title: Expiry Period
          default: 2
        FREQUENCY:
          type: string
          title: Frequency
          default: once
        START_TIME:
          type: integer
          title: Start Time
          default: 24
        IS_ACTIVE:
          type: boolean
          title: Is Active
        CREATED_AT:
          type: string
          format: date-time
          title: Created At
        FCM_TOKEN:
          anyOf:
          - type: string
          - type: 'null'
          title: Fcm Token
        POOL_ID:
          type: string
          title: Pool Id
      type: object
      required:
      - GUID
      - CHANNEL
      - CHANNEL_USER_IDENTITY
      - FOR_LEVELS
      - IS_ACTIVE
      - CREATED_AT
      - POOL_ID
      title: UserPreferenceResponse
    UserPreferenceRequest:
      properties:
        CHANNEL:
          $ref: '#/components/schemas/ChannelType'
        CHANNEL_USER_IDENTITY:
          type: string
          title: Channel User Identity
        VERIFICATION_CODE:
          anyOf:
          - type: string
          - type: 'null'
          title: Verification Code
        DAYS_AHEAD:
          type: integer
          title: Days Ahead
        FOR_LEVELS:
          items:
            type: string
          type: array
          title: For Levels
        SIDE_PREFERENCE:
          anyOf:
          - items:
              $ref: '#/components/schemas/SessionSide'
            type: array
          - type: 'null'
          title: Side Preference
        PREFERRED_DAY_OF_WEEK:
          anyOf:
          - items:
              type: integer
            type: array
          - type: 'null'
          title: Preferred Day Of Week
        PREFERRED_TIME_OF_DAY:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Preferred Time Of Day
        AVAILABLE_MIN:
          type: integer
          title: Available Min
        EXPIRY_PERIOD:
          type: integer
          title: Expiry Period
        FREQUENCY:
          anyOf:
          - type: string
          - type: 'null'
          title: Frequency
        START_TIME:
          type: integer
          title: Start Time
        IS_ACTIVE:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Is Active
        CREATED_AT:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Created At
        GUID:
          anyOf:
          - type: string
          - type: 'null'
          title: Guid
        FCM_TOKEN:
          anyOf:
          - type: string
          - type: 'null'
          title: Fcm Token
      type: object
      required:
      - CHANNEL
      - CHANNEL_USER_IDENTITY
      - DAYS_AHEAD
      - FOR_LEVELS
      - SIDE_PREFERENCE
      - PREFERRED_DAY_OF_WEEK
      - PREFERRED_TIME_OF_DAY
      - AVAILABLE_MIN
      - EXPIRY_PERIOD
      - START_TIME
      title: UserPreferenceRequest
    SessionResponse:
      properties:
        ID:
          type: integer
          title: Id
        SESSION_DATE:
          type: string
          title: Session Date
        SESSION_TIME:
          type: string
          title: Session Time
        SESSION_DATETIME_UTCISO:
          type: string
          title: Session Datetime Utciso
        SESSION_TITLE:
          type: string
          title: Session Title
        SESSION_SIDE:
          $ref: '#/components/schemas/SessionSide'
        AVAILABLE_SPOTS:
          type: integer
          title: Available Spots
        LEVEL_NAME:
          type: string
          title: Level Name
        STATUS:
          anyOf:
          - type: string
          - type: 'null'
          title: Status
        AREA:
          anyOf:
          - type: string
          - type: 'null'
          title: Area
        POOL_ID:
          type: string
          title: Pool Id
        EXT_URL:
          anyOf:
          - type: string
          - type: 'null'
          title: Ext Url
        DATE_CLIENT_STR:
          type: string
          title: Date Client Str
      type: object
      required:
      - ID
      - SESSION_DATE
      - SESSION_TIME
      - SESSION_DATETIME_UTCISO
      - SESSION_TITLE
      - SESSION_SIDE
      - AVAILABLE_SPOTS
      - LEVEL_NAME
      - POOL_ID
      - DATE_CLIENT_STR
      title: SessionResponse
    Body_send_test_push_api_send_test_push_post:
      properties:
        fcm_token:
          type: string
          title: Fcm Token
        channel:
          type: string
          title: Channel
        channel_user_identity:
          type: string
          title: Channel User Identity
        device_info:
          type: string
          title: Device Info
      type: object
      required:
      - fcm_token
      title: Body_send_test_push_api_send_test_push_post
    ChannelType:
      type: string
      enum:
      - EMAIL
      - WHATSAPP
      - TELEGRAM
      title: ChannelType
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    EmailVerificationRequest:
      properties:
        email:
          type: string
          format: email
          title: Email
      type: object
      required:
      - email
      title: EmailVerificationRequest
    SessionSide:
      type: string
      enum:
      - LEFT
      - RIGHT
      title: SessionSide
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError