> ## Documentation Index
> Fetch the complete documentation index at: https://docs.okeyproxy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate customized endpoints for continent

> Generate custom proxy endpoints with protocol, location, session type, and sticky session duration.



## OpenAPI

````yaml POST /api/v2/proxy/endpoints/continents-custom
openapi: 3.0.1
info:
  title: okey
  description: ''
  version: 1.0.0
servers:
  - url: https://api.okeyproxy.com/ipglobal-api
security: []
tags: []
paths:
  /api/v2/proxy/endpoints/continents-custom:
    post:
      tags: []
      summary: Generate customized endpoints
      description: >-
        Generate custom proxy endpoints with protocol, location, session type,
        and sticky session duration.
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                apiKey:
                  type: string
                  description: Agent API key used for authentication
                proxyType:
                  type: integer
                  title: ''
                  description: >-
                    Rotating proxies type. 1 for Starter, 2 for Advanced, 3 for
                    Premium.
                secUsername:
                  type: string
                  title: ''
                  description: >-
                    Sec-user account. Letters and numbers only, up to 40
                    characters.
                protocol:
                  type: string
                  title: ''
                  description: >-
                    Protocol used for the endpoint. Options: Endpoint:Port
                    (default), HTTP(S), SOCKS5.
                randomLocation:
                  type: integer
                  title: ''
                  description: >-
                    Random location option. 1 for random location, 2 for custom
                    location. Required location fields (countryCode, regionName,
                    cityName) can be omitted when set to 1 (default: 1).
                continentCode:
                  type: string
                  title: ''
                  description: >-
                    Continent code. Required only when randomLocation is 2.
                    Case-insensitive.
                countryCode:
                  type: string
                  title: ''
                  description: >-
                    Country code. Required only when randomLocation is 2 and
                    continentCode is provided.
                regionName:
                  type: string
                  description: Region name
                cityName:
                  type: string
                  title: ''
                  description: >-
                    City name. Required only when randomLocation is 2 and
                    regionName is provided.
                sessionType:
                  type: string
                  title: ''
                  description: 'Session type. Options: Rotating (default), Sticky.'
                sessionTime:
                  type: integer
                  title: ''
                  description: >-
                    Session time. Required only when sessionType is Sticky.
                    Allowed range: 3–60.
                count:
                  type: integer
                  title: ''
                  description: >-
                    Number of endpoints to return. Required only when
                    sessionType is Sticky. Allowed range: 1–50000.
              required:
                - apiKey
                - proxyType
                - secUsername
            examples: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  endpoint:
                    type: string
                    description: Generated proxy endpoint with authentication
                required:
                  - endpoint
              examples:
                '1':
                  summary: 成功示例
                  value: >-
                    socks5:
                    //customer-mn5m509632-continents-AF-country-PT-region-Aveiro-city-Arcos-session-k102pjzfil6nsvx-time-6:qli98bex@tunnel-proxy.okeyproxy.com:30000
                '2':
                  summary: 成功示例
                  value: >-
                    socks5://customer-mn5m509632-country-PT-region-Aveiro-city-Arcos-session-pu85lixyok3ssr7-time-6:qli98bex@tunnel-proxy.okeyproxy.com:30000
                '3':
                  summary: 成功示例
                  value: >-
                    socks5://customer-mn5m509632-country-PT-region-Aveiro-city-Arcos-session-fzdcrx6u1w9l4tz-time-6:qli98bex@tunnel-proxy.okeyproxy.com:30000
          headers: {}
      deprecated: false
      security: []

````