Skip to content

Apps

Create, inspect, and update Inttegro accounts.

An Inttegro account is called an app in the API. Each app keeps its own orders, customers, balances, payouts, settings, and credentials.

Create another app when a business, branch, tenant, sales channel, or environment needs separate money, permissions, or reporting. Do not create an app for an individual shopper, order, device, or checkout session.

Each app has its own secret keys. When your backend uses one of those keys, every request belongs to that app. Use the Apps API to create and manage accounts programmatically, such as when you onboard a merchant, add a tenant, separate production from staging, or give a sales channel its own credentials.

The app object

An app object contains the stable identifier and human-readable metadata for one Inttegro account. Secret key values are not returned on normal app lookups; the initial token appears only in the response from Create an app.

Properties

TypeScript SDK responseAppv15.0.0

Create an app POST /apps/create

Create an Inttegro child app and its first secret key. Your current Inttegro account becomes its parent unless you supply separately authorized delegated placement details.

Store secretKey.token immediately after the response is received. The full token is returned only at creation time and is not included in later lookup or update responses.Surrounding whitespace is removed from text attributes, and unknown attributes are rejected. name must remain non-empty after trimming. For legalEntityType, use "government", "non_profit", "business", or "individual"; integrations should not rely on undocumented classifications being accepted.Omit placementParentApplicationId for ordinary child-app creation. Placing the child under another app requires a valid authorization receipt for that relationship and a compatible relationshipPolicy; a parent ID alone is not sufficient.

Request attributes

TypeScript SDK requestCreateAppRequestv15.0.0

Response shape

The response contains the new App, its placement relationship, and a create-only secretKey.

Optional app attributes are omitted when empty. Although secretKey is expected for normal public creation, clients must still check that it is present before attempting to store the token.

Response attributes

TypeScript SDK responseAppv15.0.0

Request

POST/apps/create
cURLbash
curl https://api.inttegro.com/apps/create \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"alias": "acme-prod-api",
"description": "Production Inttegro API for Acme Marketplace",
"legal_entity_type": "business",
"name": "Acme Production API"
}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

const inttegro = new InttegroClient({
  apiKey: process.env.INTTEGRO_API_KEY!,
})

const result = await inttegro.apps.create({
  alias: "acme-prod-api",
  description: "Production Inttegro API for Acme Marketplace",
  legalEntityType: "business",
  name: "Acme Production API",
})
Gogo
package main

import (
  "context"
  "log"
  "os"

  inttegro "github.com/inttegro/inttegro-sdk-go/v14"
  "github.com/inttegro/inttegro-sdk-go/v14/app"
)

func main() {
  ctx := context.Background()
  client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))

  params := app.CreateParams{
    Alias: "acme-prod-api",
    Description: "Production Inttegro API for Acme Marketplace",
    LegalEntityType: "business",
    Name: "Acme Production API",
  }
  result, err := client.Apps.Create(ctx, params)
  if err != nil {
    log.Fatal(err)
  }
  _ = result
}
Pythonpython
import os

import inttegro
from inttegro import InttegroClient

client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])

result = client.apps.create(inttegro.app.CreateRequest(
  alias="acme-prod-api",
  description="Production Inttegro API for Acme Marketplace",
  legal_entity_type="business",
  name="Acme Production API",
))
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->apps->create([
  'alias' => 'acme-prod-api',
  'description' => 'Production Inttegro API for Acme Marketplace',
  'legal_entity_type' => 'business',
  'name' => 'Acme Production API',
]);
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.apps.create(
  alias: "acme-prod-api",
  description: "Production Inttegro API for Acme Marketplace",
  legal_entity_type: "business",
  name: "Acme Production API"
)
Javajava
import com.inttegro.Client;
import com.inttegro.apps.CreateAppParams;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var params = CreateAppParams.builder()
      .alias("acme-prod-api")
      .description("Production Inttegro API for Acme Marketplace")
      .legalEntityType("business")
      .name("Acme Production API")
      .build();
    var result = client.apps().create(params);
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Apps.CreateAsync(new CreateAppRequest {
  Alias = "acme-prod-api",
  Description = "Production Inttegro API for Acme Marketplace",
  LegalEntityType = "business",
  Name = "Acme Production API",
});
Responsejson
{
  "app": {
    "alias": "acme-prod-api",
    "capabilities": {},
    "created_at": "2025-02-15T14:30:00Z",
    "description": "Production Inttegro API for Acme Marketplace",
    "id": "app_F2gH4iJ6kL8mN0oP2qR4sT6uV8wX0yZ",
    "name": "Acme Production API",
    "relationship": {
      "created_at": "2025-02-15T14:30:00Z",
      "id": "apprel_2xL4nP6rT8vX0zB2dF4hJ6lN8pR0tV2x",
      "kind": "placement",
      "parent": {
        "alias": "acme-platform",
        "id": "app_M8nP0qR2sT4uV6wX8yZ0aB2cD4eF6gH",
        "name": "Acme Platform"
      },
      "status": "active"
    },
    "secret_key": {
      "id": "sk_Q1wE3rT5yU7iO9pA2sD4fG6hJ8kL0zX",
      "issued_at": "2025-02-15T14:30:00Z",
      "token": "<SECRET_KEY_TOKEN>",
      "token_type": "bearer"
    }
  }
}

Lookup an app POST /apps/lookup

Retrieve the app associated with the API key used on the request. Use this endpoint to confirm which app a secret key authenticates as, or to display app metadata in your own tooling.

The request has no body. An empty JSON object is also accepted. Unknown attributes are rejected. The response includes app metadata and, for a child app, its direct placement relationship. It never includes secret key values.

Request attributes

No request body is required.

Response shape

The response returns App for your current account. Child apps include relationship; root apps omit it.

Response attributes

TypeScript SDK responseAppv15.0.0

Request

POST/apps/lookup
cURLbash
curl -X POST https://api.inttegro.com/apps/lookup \
-H "Authorization: Bearer $INTTEGRO_API_KEY"
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

const inttegro = new InttegroClient({
  apiKey: process.env.INTTEGRO_API_KEY!,
})

const result = await inttegro.apps.lookup()
Gogo
package main

import (
  "context"
  "log"
  "os"

  inttegro "github.com/inttegro/inttegro-sdk-go/v14"
)

func main() {
  ctx := context.Background()
  client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))

  result, err := client.Apps.Lookup(ctx)
  if err != nil {
    log.Fatal(err)
  }
  _ = result
}
Pythonpython
import os

from inttegro import InttegroClient

client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])

result = client.apps.lookup()
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->apps->lookup();
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.apps.lookup
Javajava
import com.inttegro.Client;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var result = client.apps().lookup();
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Apps.LookupAsync();
Responsejson
{
  "app": {
    "alias": "acme-prod-api",
    "capabilities": {
      "payments": {
        "status": "enabled",
        "status_changed_at": "2025-02-15T14:30:00Z"
      },
      "payouts": {
        "status": "enabled",
        "status_changed_at": "2025-02-15T14:30:00Z"
      }
    },
    "created_at": "2025-02-15T14:30:00Z",
    "description": "Production Inttegro API for Acme Marketplace",
    "id": "app_F2gH4iJ6kL8mN0oP2qR4sT6uV8wX0yZ",
    "name": "Acme Production API",
    "relationship": {
      "created_at": "2025-02-15T14:30:00Z",
      "id": "apprel_2xL4nP6rT8vX0zB2dF4hJ6lN8pR0tV2x",
      "kind": "placement",
      "parent": {
        "alias": "acme-platform",
        "id": "app_M8nP0qR2sT4uV6wX8yZ0aB2cD4eF6gH",
        "name": "Acme Platform"
      },
      "status": "active"
    },
    "updated_at": "2025-02-16T09:45:30Z"
  }
}

Update an app POST /apps/update

Update metadata for the app associated with the API key used on the request. This endpoint changes app labels and classification; it does not rotate secret keys or move resources between apps.

Send at least one mutable attribute. Unknown attributes are rejected. Text values are trimmed; empty alias, description, and legalEntityType values clear those fields, while an empty name is rejected.Sending values that are already stored succeeds without changing updatedAt.

Request attributes

TypeScript SDK requestUpdateAppRequestv15.0.0

Response shape

The response returns App with the current metadata after the update.

Response attributes

TypeScript SDK responseAppv15.0.0

Request

POST/apps/update
cURLbash
curl https://api.inttegro.com/apps/update \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Idempotency-Key: app-update-acme-checkout-001" \
-H "Content-Type: application/json" \
-d '{
"alias": "acme-checkout-api",
"description": "Checkout API for Acme Marketplace",
"legal_entity_type": "business",
"name": "Acme Checkout API"
}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

const inttegro = new InttegroClient({
  apiKey: process.env.INTTEGRO_API_KEY!,
})

const result = await inttegro.apps.update({
  alias: "acme-checkout-api",
  description: "Checkout API for Acme Marketplace",
  legalEntityType: "business",
  name: "Acme Checkout API",
})
Gogo
package main

import (
  "context"
  "log"
  "os"

  inttegro "github.com/inttegro/inttegro-sdk-go/v14"
  "github.com/inttegro/inttegro-sdk-go/v14/app"
  "github.com/inttegro/inttegro-sdk-go/v14/request"
)

func main() {
  ctx := context.Background()
  client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))

  params := app.UpdateParams{
    Alias: inttegro.String("acme-checkout-api"),
    Description: inttegro.String("Checkout API for Acme Marketplace"),
    LegalEntityType: inttegro.String("business"),
    Name: inttegro.String("Acme Checkout API"),
  }
  result, err := client.Apps.Update(ctx, params, request.WithIdempotencyKey("app-update-acme-checkout-001"))
  if err != nil {
    log.Fatal(err)
  }
  _ = result
}
Pythonpython
import os

import inttegro
from inttegro import InttegroClient

client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])

result = client.apps.update(inttegro.app.UpdateRequest(
  alias="acme-checkout-api",
  description="Checkout API for Acme Marketplace",
  legal_entity_type="business",
  name="Acme Checkout API",
))
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->apps->update([
  'alias' => 'acme-checkout-api',
  'description' => 'Checkout API for Acme Marketplace',
  'legal_entity_type' => 'business',
  'name' => 'Acme Checkout API',
]);
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.apps.update(
  alias: "acme-checkout-api",
  description: "Checkout API for Acme Marketplace",
  legal_entity_type: "business",
  name: "Acme Checkout API"
)
Javajava
import com.inttegro.Client;
import com.inttegro.apps.UpdateAppParams;
import com.inttegro.RequestOptions;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var params = UpdateAppParams.builder()
      .alias("acme-checkout-api")
      .description("Checkout API for Acme Marketplace")
      .legalEntityType("business")
      .name("Acme Checkout API")
      .build();
    var result = client.apps().update(params, RequestOptions.withIdempotencyKey("app-update-acme-checkout-001"));
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Apps.UpdateAsync(new UpdateAppRequest {
  Alias = "acme-checkout-api",
  Description = "Checkout API for Acme Marketplace",
  LegalEntityType = "business",
  Name = "Acme Checkout API",
});
Responsejson
{
  "app": {
    "alias": "acme-checkout-api",
    "capabilities": {
      "payments": {
        "status": "enabled",
        "status_changed_at": "2025-02-15T14:30:00Z"
      },
      "payouts": {
        "status": "enabled",
        "status_changed_at": "2025-02-15T14:30:00Z"
      }
    },
    "created_at": "2025-02-15T14:30:00Z",
    "description": "Checkout API for Acme Marketplace",
    "id": "app_F2gH4iJ6kL8mN0oP2qR4sT6uV8wX0yZ",
    "name": "Acme Checkout API",
    "updated_at": "2025-02-16T09:45:30Z"
  }
}

Type to search…

↑↓ navigate↵ selectEsc close