Tap Titans 2 API 1.0.0

Documentation for Socket API. For more information about SocketIO, please visit the SocketIO website.
Click here to return on the main page.

Servers

  • tt2-public.gamehivegames.com/apiwssapi

    Depending on your client language, the namespaces and the path are not defined in the same way. SocketIO is not a standard websocket library, you might required additional setting defined in channel bindings.

    Security:
    • HTTP API key
      • Name: API-Authenticate
      • In: header

Operations

  • ON /raid

    Accepts one of the following messages:

    • #0connected

      Event emitted when the connection has been established. No payload returned.

      Examples

    • #1disconnect

      Event emitted when the client is disconnected by itself or by the server.

      Payload
      string

      Examples

    • #2error

      General error handler event.

      object

      Examples

    • #3connect_error

      Error handler event when something went wrong during connection. Do not auto-reconnect on this event and look properly at the error.

      object

      Examples

    • #4unsub_clan

      Event received when your application has been kicked out from a room. This can happen if a player token has been revoked.

      object

      Examples

    • #5start_attack

      Start attack log. You receive this event for the clan you have registered to.

      object

      Examples

    • #6attack

      Raid attack log. You receive this event for the clan you have registered to.

      object

      Examples

    • #7start

      Start raid log. You receive this event for the clan you have registered to.

      object

      Examples

    • #8sub_start

      Start raid log. This event is sent when you subscribe to a new clan.

      object

      Examples

    • #9end

      End raid log. You receive this event for the clan you have registered to.

      object

      Examples

    • #10retire

      Retire raid log. You receive this event for the clan you have registered to.

      object

      Examples

    • #11cycle_reset

      Cycle reset log. You receive this event for the clan you have registered to.

      object

      Examples

    • #12sub_cycle

      Cycle reset log. This event is sent when you subscribe to a new clan.

      object

      Examples

    • #13target

      Titan targets change log. You receive this event for the clan you have registered to.

      object

      Examples

    • #14join

      Join a clan log. You receive this event for the clan you have registered to.

      object

      Examples

    • #15leave

      Leave a clan log. You receive this event for the clan you have registered to.

      object

      Examples

    • #16kick

      Get kicked from a clan log. You receive this event for the clan you have registered to.

      object

      Examples

    • #17morale

      Morale collection log. You receive this event for the clan you have registered to.

      object

      Examples

    • #18clan_sync

      Resync clan when some event is happening. You receive this event for the clan you have registered to.

      object

      Examples

  • ON /player

    Accepts one of the following messages:

    • #0connected

      Event emitted when the connection has been established. No payload returned.

      Examples

    • #1disconnect

      Event emitted when the client is disconnected by itself or by the server.

      Payload
      string

      Examples

    • #2error

      General error handler event.

      object

      Examples

    • #3connect_error

      Error handler event when something went wrong during connection. Do not auto-reconnect on this event and look properly at the error.

      object

      Examples

Messages

  • #1connected

    Event emitted when the connection has been established. No payload returned.

  • #2disconnect

    Event emitted when the client is disconnected by itself or by the server.

    Payload
    string
  • #3error

    General error handler event.

    object
  • #4connect_error

    Error handler event when something went wrong during connection. Do not auto-reconnect on this event and look properly at the error.

    object
  • #5unsub_clan

    Event received when your application has been kicked out from a room. This can happen if a player token has been revoked.

    object
  • #6start_attack

    Start attack log. You receive this event for the clan you have registered to.

    object
  • #7attack

    Raid attack log. You receive this event for the clan you have registered to.

    object
  • #8start

    Start raid log. You receive this event for the clan you have registered to.

    object
  • #9sub_start

    Start raid log. This event is sent when you subscribe to a new clan.

    object
  • #10end

    End raid log. You receive this event for the clan you have registered to.

    object
  • #11retire

    Retire raid log. You receive this event for the clan you have registered to.

    object
  • #12cycle_reset

    Cycle reset log. You receive this event for the clan you have registered to.

    object
  • #13sub_cycle

    Cycle reset log. This event is sent when you subscribe to a new clan.

    object
  • #14target

    Titan targets change log. You receive this event for the clan you have registered to.

    object
  • #15join

    Join a clan log. You receive this event for the clan you have registered to.

    object
  • #16leave

    Leave a clan log. You receive this event for the clan you have registered to.

    object
  • #17kick

    Get kicked from a clan log. You receive this event for the clan you have registered to.

    object
  • #18morale

    Morale collection log. You receive this event for the clan you have registered to.

    object
  • #19clan_sync

    Resync clan when some event is happening. You receive this event for the clan you have registered to.

    object

Schemas

  • payloads
    any
    uid: payloads
  • objects
    any
    uid: objects
  • titan_part_enum
    string
    uid: titan_part_enum
      Allowed values:
    • "ArmorLegUpperRight"
    • "ArmorHandLeft"
    • "ArmorHandRight"
    • "ArmorLegUpperLeft"
    • "ArmorChestUpper"
    • "ArmorArmUpperRight"
    • "ArmorArmUpperLeft"
    • "ArmorHead"
    • "BodyLegUpperRight"
    • "BodyHandLeft"
    • "BodyHandRight"
    • "BodyLegUpperLeft"
    • "BodyChestUpper"
    • "BodyArmUpperRight"
    • "BodyArmUpperLeft"
    • "BodyHead"
    • "SkeletonLegUpperRight"
    • "SkeletonHandLeft"
    • "SkeletonHandRight"
    • "SkeletonLegUpperLeft"
    • "SkeletonChestUpper"
    • "SkeletonArmUpperRight"
    • "SkeletonArmUpperLeft"
    • "SkeletonHead"
  • card_bonuses_enum
    string
    uid: card_bonuses_enum
      Allowed values:
    • "TeamTacticsClanMoraleBoost"
    • "MirrorForceBoost"
  • card_enum
    string
    uid: card_enum
      Allowed values:
    • "MoonBeam"
    • "Fragmentize"
    • "SkullBash"
    • "RazorWind"
    • "WhipOfLightning"
    • "BurstCount"
    • "Purify"
    • "LimbBurst"
    • "FlakShot"
    • "Haymaker"
    • "ChainLightning"
    • "MirrorForce"
    • "CelestialStatic"
    • "BurningAttack"
    • "PoisonAttack"
    • "DecayingAttack"
    • "Fuse"
    • "Shadow"
    • "PlagueAttack"
    • "Disease"
    • "Swarm"
    • "RuinousRust"
    • "PowerBubble"
    • "RuneAttack"
    • "ExecutionersAxe"
    • "CrushingVoid"
    • "MentalFocus"
    • "ImpactAttack"
    • "InnerTruth"
    • "FinisherAttack"
    • "SuperheatMetal"
    • "BurstBoost"
    • "LimbSupport"
    • "TotemFairySkill"
    • "TeamTactics"
    • "SpinalTap"
  • enemy_id
    string
    uid: enemy_id
      Allowed values:
    • "Enemy1"
    • "Enemy2"
    • "Enemy3"
    • "Enemy4"
    • "Enemy5"
    • "Enemy6"
    • "Enemy7"
    • "Enemy8"
  • enemy_name_enum
    string
    uid: enemy_name_enum
      Allowed values:
    • "Lojak"
    • "Takedar"
    • "Jukk"
    • "Sterl"
    • "Mohaca"
    • "Terro"
    • "Klonk"
    • "Priker"
  • target_state_enum
    string
    uid: target_state_enum

    0 = No target, 1 = Crossed, 2 = Checked.

      Allowed values:
    • 0
    • 1
    • 2
  • target_state_part
    string
    uid: target_state_part
      Allowed values:
    • "Head"
    • "ChestUpper"
    • "ArmUpperRight"
    • "ArmUpperLeft"
    • "LegUpperRight"
    • "LegUpperLeft"
    • "HandRight"
    • "HandLeft"