---
title: "POST /poktroll.service.Msg/AddService"
method: POST
path: "/poktroll.service.Msg/AddService"
tags: ["Msg"]
---

# POST /poktroll.service.Msg/AddService

`POST /poktroll.service.Msg/AddService`

## Request body

- PoktrollServiceMsgAddService — MsgAddService defines a message for adding a new message to the network. Services can be added by any actor in the network making them truly permissionless. TODO_BETA: Add Champions / Sources once its fully defined.
  - `owner_address` string — The Bech32 address of the service owner.
  - `service` PoktrollSharedService
    - `compute_units_per_relay` string, uint64 — Compute units required per relay for this service
    - `id` string — Unique identifier for the service
    - `name` string — TODO_MAINNET: Remove this. (Optional) Semantic human readable name for the service
    - `owner_address` string — The owner address that created the service. It is the address that receives rewards based on the Service's on-chain usage It is the only address that can update the service configuration (e.g. compute_units_per_relay), or make other updates to it. The Bech32 address of the service owner / creator

## Response `200`

A successful response.

- PoktrollServiceMsgAddServiceResponse

## Other responses

- `default` — An unexpected error response.

## Changes

- **2024-08-14** `21c607e4fa20` — 1 info
  - api operation id `PoktrollServiceMsg_AddService` removed and replaced with `GithubCompoktNetworkpoktrollMsg_AddService`
- **2024-02-23** `54713b4a9d25` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/pokt-network/apis/http-api-console/changes/poktroll.service.Msg/AddService/post.md)

---

[API](https://skmtc.dev/pokt-network/apis/http-api-console.md) · [All operations](https://skmtc.dev/pokt-network/apis/http-api-console/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pokt-network/http-api-console/revisions/21c607e4fa20/schema)
