LogoLogo
Go to app
  • Getting started
    • Authentication setup
    • Rate limits
    • Error handling
    • Pagination
  • CRM
    • People
  • Organizations
  • Segments
  • Workspaces
    • Workspaces
  • Tasks
  • Global
    • Tags
  • webhooks
    • Conversation
Powered by GitBook

(C) 2025 RogerRoger

On this page
Export as PDF

Segments

PreviousOrganizationsNextWorkspaces

Last updated 2 days ago

The segments endpoint gives access to lists where you can place contacts in.

Retrieves the collection of Segment resources.

get

Retrieves the collection of Segment resources.

Authorizations
Query parameters
pageintegerOptional

The collection page number

Default: 1
itemsPerPageinteger · max: 30Optional

The number of items per page

Default: 15
Responses
200
Segment collection
403
Forbidden
get
GET /segments HTTP/1.1
Host: api.rogerroger.io
X-API-KEY: YOUR_API_KEY
Accept: */*
{
  "member": [
    {
      "@context": "text",
      "@id": "text",
      "@type": "text",
      "id": null,
      "title": null,
      "icon": null,
      "sequence": null
    }
  ],
  "totalItems": 1,
  "view": {
    "@id": "string",
    "type": "string",
    "first": "string",
    "last": "string",
    "previous": "string",
    "next": "string"
  },
  "search": {
    "@type": "text",
    "template": "text",
    "variableRepresentation": "text",
    "mapping": [
      {
        "@type": "text",
        "variable": "text",
        "property": null,
        "required": true
      }
    ]
  }
}
  • POSTCreates a Segment resource.
  • GETRetrieves a Segment resource.
  • PATCHUpdates the Segment resource.
  • PUTReplaces the Segment resource.
  • GETRetrieves the collection of Segment resources.

Retrieves a Segment resource.

get

Retrieves a Segment resource.

Authorizations
Path parameters
idstringRequired

Segment identifier

Responses
200
Segment resource
403
Forbidden
404
Not found
get
GET /segments/{id} HTTP/1.1
Host: api.rogerroger.io
X-API-KEY: YOUR_API_KEY
Accept: */*
{
  "@context": "text",
  "@id": "text",
  "@type": "text",
  "id": null,
  "title": null,
  "icon": null,
  "sequence": null
}

Creates a Segment resource.

post

Creates a Segment resource.

Authorizations
Body
@contextone ofRead-onlyOptional
stringOptional
or
@idstringRead-onlyOptional
@typestringRead-onlyOptional
idstring | nullOptional
titlestring | nullRequired
iconstring | nullRequired
sequenceinteger | nullOptional
Responses
201
Segment resource created
400
Invalid input
403
Forbidden
422
An error occurred
post
POST /segments HTTP/1.1
Host: api.rogerroger.io
X-API-KEY: YOUR_API_KEY
Content-Type: application/ld+json
Accept: */*
Content-Length: 52

{
  "id": null,
  "title": null,
  "icon": null,
  "sequence": null
}
{
  "@context": "text",
  "@id": "text",
  "@type": "text",
  "id": null,
  "title": null,
  "icon": null,
  "sequence": null
}

Updates the Segment resource.

patch

Updates the Segment resource.

Authorizations
Path parameters
idstringRequired

Segment identifier

Body
idstring | nullOptional
titlestring | nullRequired
iconstring | nullRequired
sequenceinteger | nullOptional
Responses
200
Segment resource updated
400
Invalid input
403
Forbidden
404
Not found
422
An error occurred
patch
PATCH /segments/{id} HTTP/1.1
Host: api.rogerroger.io
X-API-KEY: YOUR_API_KEY
Content-Type: application/merge-patch+json
Accept: */*
Content-Length: 52

{
  "id": null,
  "title": null,
  "icon": null,
  "sequence": null
}
{
  "@context": "text",
  "@id": "text",
  "@type": "text",
  "id": null,
  "title": null,
  "icon": null,
  "sequence": null
}

Replaces the Segment resource.

put

Replaces the Segment resource.

Authorizations
Path parameters
idstringRequired

Segment identifier

Body
@contextone ofRead-onlyOptional
stringOptional
or
@idstringRead-onlyOptional
@typestringRead-onlyOptional
idstring | nullOptional
titlestring | nullRequired
iconstring | nullRequired
sequenceinteger | nullOptional
Responses
200
Segment resource updated
400
Invalid input
403
Forbidden
404
Not found
422
An error occurred
put
PUT /segments/{id} HTTP/1.1
Host: api.rogerroger.io
X-API-KEY: YOUR_API_KEY
Content-Type: application/ld+json
Accept: */*
Content-Length: 52

{
  "id": null,
  "title": null,
  "icon": null,
  "sequence": null
}
{
  "@context": "text",
  "@id": "text",
  "@type": "text",
  "id": null,
  "title": null,
  "icon": null,
  "sequence": null
}