# API

{% hint style="warning" %}
This section is intended for developers utilizing our APIs to add channels.
{% endhint %}

Below you will find the keys to generate secrets payloads for adding or updating a channel via the [Script API](https://docs.edgetag.io/api/api/script).

Refer to the [onboarding page](/channels/gcp-pub-sub/onboarding.md) for detailed information on the purpose and usage of each input.

### DESTINATION

Used to store the destination. \
This has constant value  - **self**

**Example Value**\
self

**Type**\
TEXT&#x20;

**Optional**\
false

### SELF\_SERVE\_TOPIC

Used to store the Blotout Topic

**Example Value**\
BlotoutTopic

**Type**\
TEXT&#x20;

**Optional**\
false

### SELF\_SERVE\_SERVICE\_ACCOUNT\_JSON

Used to store the Service Account JSON

**Example Value**

```json
{
  "type": "service_account",
  "project_id": "my-project-test-1-389014",
  "private_key_id": "579476d1ca682d0530db0916f8d8475cdadd7e45",
  "private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC0h6mAwKkO5Ulq\nKywjw3RGPo6DXwxfs5uvaMwzWOMu6xLe3QqRNcV1fbjKxo0liTNz9Uh6iRTYg4bu\n14rpmjg5Gv1YzG39gd8l3nFEdnS4qm8QyDGQPrCBow2Rpel1HQL/IYtkE9lRamMS\nebUyJnbKSRugBH60fOe0Qi+wk4fuO7/G5ZVc/dOOSnWc8pv4xDdD54qRg2M9t7Nw\ndgqNssKYBApeC+UBUH/v3gzeO3GVVvMdaBq3DCSnN26TB4SyPiavzAS4XsYSf0+o\nPfymcpkqFw6faJ3hLw7gvg5FQFG4zPRGlUYs6sC7dyZkrKz26c0ktWN33Ib/ikeV\nHYExFJCtAgMBAAECggEAJjG7jWd1fRbKkQFATfK4w3HRwf6WhhrgWdywsz5flloa\nvHcEmNNJCwIF2jTmwOXFsodXBcHB3Mr6/cYxeBnuQjqxFhvuO1/CP+dPjH4JVNaO\nN/066zswKcU/Bi0Vdvcj3qmQraQ7aqu4+Twxt0IHCOYtx42b5wC0HuGP6GpWLHMw\no77EZvNCDj8JP7s9mgR1U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-----\n",
  "client_email": "sa-two@my-project-test-1-389014.iam.gserviceaccount.com",
  "client_id": "106149908424886040139",
  "auth_uri": "https://accounts.google.com/o/oauth2/auth",
  "token_uri": "https://oauth2.googleapis.com/token",
  "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
  "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/sa-two%40my-project-test-1-389014.iam.gserviceaccount.com",
  "universe_domain": "googleapis.com"
}
```

\
**Type**\
TEXT&#x20;

**Optional**\
false


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.edgetag.io/channels/gcp-pub-sub/api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
