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

# Run the credentials handshake

> Perform the OCPI credentials handshake with a connection you own, exchanging registration tokens so both sides can make authenticated calls once registered.



## OpenAPI

````yaml /openapi/public-api.json post /connections/{id}/register
openapi: 3.1.0
info:
  title: EV Roaming Tester public API
  version: 1.0.0
  description: >-
    Automate EV Roaming Tester with an evrt_ API key: register partner
    connections, run conformance suites and charging journeys, and read the
    graded reports.
servers:
  - url: https://evsim.synergyboat.com/api/v1
security:
  - apiKey: []
tags:
  - name: Connections
  - name: Testing
  - name: Reports
  - name: Usage
  - name: Journeys
paths:
  /connections/{id}/register:
    post:
      tags:
        - Connections
      summary: Run the OCPI credentials handshake for an owned connection
      description: >-
        Perform the OCPI credentials handshake with a connection you own,
        exchanging registration tokens so both sides can make authenticated
        calls once registered.
      operationId: connections_register
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Connection'
        '400':
          description: Malformed input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found, or owned by another account
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Unsupported configuration for this target
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Quota or rate limit reached
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - apiKey: []
components:
  schemas:
    Connection:
      type: object
      required:
        - success
        - data
      properties:
        success:
          type: boolean
        data:
          $ref: '#/components/schemas/ConnectionView'
    Error:
      type: object
      required:
        - success
        - message
      properties:
        success:
          type: boolean
          enum:
            - false
        message:
          type: string
    ConnectionView:
      type: object
      required:
        - _id
        - partnerBaseUrl
        - ourRole
        - theirRole
        - ocpiVersion
        - status
      properties:
        _id:
          type: string
        partnerBaseUrl:
          type: string
          format: uri
        ourRole:
          type: string
          enum:
            - CPO
            - EMSP
        theirRole:
          type: string
          enum:
            - CPO
            - EMSP
        ocpiVersion:
          type: string
          enum:
            - 2.1.1
            - '2.2'
            - 2.2.1
            - 2.3.0
        status:
          type: string
          enum:
            - pending
            - registered
            - failed
        lastError:
          type: string
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: An evrt_... API key created in the app under Settings.

````