← Atlas API & Provisioning Reference

Chapter 32 of 48

Number Client Suspensions

Schema

A record representing a client issued number suspension.

Messages are still charged even if a suspension is in place.

New message requests while a client suspension is in place will reject

Type Object

Name Type Description
block_direction Enum(NONE, INBOUND, OUTBOUND, BOTH):String Desc. block_direction
block_messaging Enum(NONE, SMS, MMS, ALL):String Desc. block_messaging
block_voip Enum(NONE, ORIGINATION, TERMINATION, ALL):String Desc. block_voip
host_number String A reference to the host did's number.
id String(format:uuid) Desc. id
inserted_at String(format:date-time) An ISO8601 formatted timestamp
notes String Any notes on the suspension.
updated_at String(format:date-time) An ISO8601 formatted timestamp

Desc. block_direction

What direction messages should be blocked to this number, suspensions may apply to inbound or outbound.

On INBOUND, messages will NOT be sent to the endpoint but will be charged. On OUTBOUND, inflight messages will NOT be sent to their destinations (note they would have already been charged). New OUTBOUND messages will be rejected at the their edge (API, SMPP or other methods).

BOTH applies all rules.

Desc. block_messaging

What type of messaging should be blocked by this suspension?

Desc. block_voip

Calls originating or terminating to the host number may not be terminated to the configured destinations while blocks are in place.

The system MAY choose to answer calls to remain compliant even if a suspension is present.

Desc. id

A Universally unique identifier, which identifies the resource

Example

{
  "block_direction": "NONE",
  "block_messaging": "NONE",
  "block_voip": "NONE",
  "host_number": "12003004000",
  "id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
  "inserted_at": "2021-08-13T04:08:44.762841Z",
  "notes": "Suspended due to carrier complaint.",
  "updated_at": "2021-08-13T04:08:44.762841Z"
}

API

Create a new Number Client Suspension

POST /api/v1/numbers/{number_id}/client_suspensions HTTP/1.1

Create a new Number Client Suspension.

Path Parameters

Name Type Description
number_id NumberId! Number or ID

Request application/json

POST /api/v1/numbers/{number_id}/client_suspensions HTTP/1.1
Accept: application/json
Content-Type: application/json
Content-Length: 196
{
  "data": {
    "block_direction": "NONE",
    "block_messaging": "NONE",
    "block_voip": "NONE",
    "notes": "Suspended due to carrier complaint."
  },
  "type": "number_client_suspension"
}

Response 201

application/json
HTTP/1.1 201
Content-Type: application/json
Content-Length: 510
{
  "associations": {
    "host_did": {
      "id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
      "number": "12003004000"
    }
  },
  "data": {
    "block_direction": "NONE",
    "block_messaging": "NONE",
    "block_voip": "NONE",
    "host_number": "12003004000",
    "id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
    "inserted_at": "2021-08-13T04:08:44.762841Z",
    "notes": "Suspended due to carrier complaint.",
    "updated_at": "2021-08-13T04:08:44.762841Z"
  },
  "type": "number_client_suspension"
}

Response 403

application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
  "errors": [
    {
      "code": "access_denied.no_scope",
      "detail": "No scope available to user role",
      "params": {
        "action": "index",
        "level": "guest",
        "resource": "resource"
      },
      "sub_code": "none",
      "title": "Access Denied, no scope available"
    }
  ]
}

Response 404

application/json
HTTP/1.1 404
Content-Type: application/json
Content-Length: 314
{
  "errors": [
    {
      "code": "not_found",
      "detail": "The specified resource could not be found",
      "params": {
        "resource": {
          "id": "3fbb573a-6049-44a0-a12c-d3a1ffae0b69",
          "type": "user"
        }
      },
      "sub_code": "none",
      "title": "Not Found"
    }
  ]
}

Update Number Client Suspension

PATCH /api/v1/number_client_suspensions/{id} HTTP/1.1

Update an existing Number Client Suspension by ID.

The same operation is also available as:

PUT /api/v1/number_client_suspensions/{id} HTTP/1.1

Path Parameters

Name Type Description
id String(format:uuid)! Client Suspension ID

Request application/json

PATCH /api/v1/number_client_suspensions/{id} HTTP/1.1
Accept: application/json
Content-Type: application/json
Content-Length: 196
{
  "data": {
    "block_direction": "NONE",
    "block_messaging": "NONE",
    "block_voip": "NONE",
    "notes": "Suspended due to carrier complaint."
  },
  "type": "number_client_suspension"
}

Response 200

application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 510
{
  "associations": {
    "host_did": {
      "id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
      "number": "12003004000"
    }
  },
  "data": {
    "block_direction": "NONE",
    "block_messaging": "NONE",
    "block_voip": "NONE",
    "host_number": "12003004000",
    "id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
    "inserted_at": "2021-08-13T04:08:44.762841Z",
    "notes": "Suspended due to carrier complaint.",
    "updated_at": "2021-08-13T04:08:44.762841Z"
  },
  "type": "number_client_suspension"
}

Response 403

application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
  "errors": [
    {
      "code": "access_denied.no_scope",
      "detail": "No scope available to user role",
      "params": {
        "action": "index",
        "level": "guest",
        "resource": "resource"
      },
      "sub_code": "none",
      "title": "Access Denied, no scope available"
    }
  ]
}

Response 404

application/json
HTTP/1.1 404
Content-Type: application/json
Content-Length: 314
{
  "errors": [
    {
      "code": "not_found",
      "detail": "The specified resource could not be found",
      "params": {
        "resource": {
          "id": "3fbb573a-6049-44a0-a12c-d3a1ffae0b69",
          "type": "user"
        }
      },
      "sub_code": "none",
      "title": "Not Found"
    }
  ]
}

Response 422

application/json
HTTP/1.1 422
Content-Type: application/json
Content-Length: 241
{
  "errors": [
    {
      "code": "invalid_parameter",
      "detail": "The specified resource could not be found",
      "source": {
        "pointer": "/data/type"
      },
      "sub_code": "none",
      "title": "Not Found"
    }
  ]
}

Delete Number Client Suspension

DELETE /api/v1/number_client_suspensions/{id} HTTP/1.1

Delete an existing Number Client Suspension by ID.

Path Parameters

Name Type Description
id String(format:uuid)! Client Suspension ID

Request

DELETE /api/v1/number_client_suspensions/{id} HTTP/1.1
Accept: application/json

Response 200

application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 510
{
  "associations": {
    "host_did": {
      "id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
      "number": "12003004000"
    }
  },
  "data": {
    "block_direction": "NONE",
    "block_messaging": "NONE",
    "block_voip": "NONE",
    "host_number": "12003004000",
    "id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
    "inserted_at": "2021-08-13T04:08:44.762841Z",
    "notes": "Suspended due to carrier complaint.",
    "updated_at": "2021-08-13T04:08:44.762841Z"
  },
  "type": "number_client_suspension"
}

Response 403

application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
  "errors": [
    {
      "code": "access_denied.no_scope",
      "detail": "No scope available to user role",
      "params": {
        "action": "index",
        "level": "guest",
        "resource": "resource"
      },
      "sub_code": "none",
      "title": "Access Denied, no scope available"
    }
  ]
}

Response 404

application/json
HTTP/1.1 404
Content-Type: application/json
Content-Length: 314
{
  "errors": [
    {
      "code": "not_found",
      "detail": "The specified resource could not be found",
      "params": {
        "resource": {
          "id": "3fbb573a-6049-44a0-a12c-d3a1ffae0b69",
          "type": "user"
        }
      },
      "sub_code": "none",
      "title": "Not Found"
    }
  ]
}

Response 422

application/json
HTTP/1.1 422
Content-Type: application/json
Content-Length: 241
{
  "errors": [
    {
      "code": "invalid_parameter",
      "detail": "The specified resource could not be found",
      "source": {
        "pointer": "/data/type"
      },
      "sub_code": "none",
      "title": "Not Found"
    }
  ]
}

List All Number Client Suspensions

GET /api/v1/number_client_suspensions HTTP/1.1

Retrieve all Number Client Suspensions.

Query Parameters

Name Type Description
first Integer Query Desc. first
last Integer Query Desc. last
after String Query Desc. after
before String Query Desc. before

Query Desc. first

The number of items to return starting from the 'after' cursor

Query Desc. last

The number of items to return behind the 'before' cursor

Query Desc. after

The cursor representing the starting point of a 'first' based paging

Query Desc. before

The cursor representing the starting point of a 'last' based paging

Request

GET /api/v1/number_client_suspensions HTTP/1.1
Accept: application/json

Response 200

application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 797
{
  "count": 1,
  "page_info": {
    "end_cursor": "YXJyYXljb25uZWN0aW9uOjQ=",
    "has_next_page": true,
    "has_previous_page": false,
    "start_cursor": "YXJyYXljb25uZWN0aW9uOjA="
  },
  "results": [
    {
      "associations": {
        "host_did": {
          "id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
          "number": "12003004000"
        }
      },
      "data": {
        "block_direction": "NONE",
        "block_messaging": "NONE",
        "block_voip": "NONE",
        "host_number": "12003004000",
        "id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
        "inserted_at": "2021-08-13T04:08:44.762841Z",
        "notes": "Suspended due to carrier complaint.",
        "updated_at": "2021-08-13T04:08:44.762841Z"
      },
      "type": "number_client_suspension"
    }
  ]
}

Response 403

application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
  "errors": [
    {
      "code": "access_denied.no_scope",
      "detail": "No scope available to user role",
      "params": {
        "action": "index",
        "level": "guest",
        "resource": "resource"
      },
      "sub_code": "none",
      "title": "Access Denied, no scope available"
    }
  ]
}

List All Client Suspensions for Number

GET /api/v1/numbers/{number_id}/client_suspensions HTTP/1.1

Retrieve all Client Suspensions for specified Number.

Path Parameters

Name Type Description
number_id NumberId! Number or ID

Query Parameters

Name Type Description
first Integer Query Desc. first
last Integer Query Desc. last
after String Query Desc. after
before String Query Desc. before

Query Desc. first

The number of items to return starting from the 'after' cursor

Query Desc. last

The number of items to return behind the 'before' cursor

Query Desc. after

The cursor representing the starting point of a 'first' based paging

Query Desc. before

The cursor representing the starting point of a 'last' based paging

Request

GET /api/v1/numbers/{number_id}/client_suspensions HTTP/1.1
Accept: application/json

Response 200

application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 797
{
  "count": 1,
  "page_info": {
    "end_cursor": "YXJyYXljb25uZWN0aW9uOjQ=",
    "has_next_page": true,
    "has_previous_page": false,
    "start_cursor": "YXJyYXljb25uZWN0aW9uOjA="
  },
  "results": [
    {
      "associations": {
        "host_did": {
          "id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
          "number": "12003004000"
        }
      },
      "data": {
        "block_direction": "NONE",
        "block_messaging": "NONE",
        "block_voip": "NONE",
        "host_number": "12003004000",
        "id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
        "inserted_at": "2021-08-13T04:08:44.762841Z",
        "notes": "Suspended due to carrier complaint.",
        "updated_at": "2021-08-13T04:08:44.762841Z"
      },
      "type": "number_client_suspension"
    }
  ]
}

Response 403

application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
  "errors": [
    {
      "code": "access_denied.no_scope",
      "detail": "No scope available to user role",
      "params": {
        "action": "index",
        "level": "guest",
        "resource": "resource"
      },
      "sub_code": "none",
      "title": "Access Denied, no scope available"
    }
  ]
}

Response 404

application/json
HTTP/1.1 404
Content-Type: application/json
Content-Length: 314
{
  "errors": [
    {
      "code": "not_found",
      "detail": "The specified resource could not be found",
      "params": {
        "resource": {
          "id": "3fbb573a-6049-44a0-a12c-d3a1ffae0b69",
          "type": "user"
        }
      },
      "sub_code": "none",
      "title": "Not Found"
    }
  ]
}

Retrieve Number Client Suspension by ID

GET /api/v1/number_client_suspensions/{id} HTTP/1.1

Lookup a Number Client Suspension by its ID.

Path Parameters

Name Type Description
id String(format:uuid)! Client Suspension ID

Request

GET /api/v1/number_client_suspensions/{id} HTTP/1.1
Accept: application/json

Response 200

application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 510
{
  "associations": {
    "host_did": {
      "id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
      "number": "12003004000"
    }
  },
  "data": {
    "block_direction": "NONE",
    "block_messaging": "NONE",
    "block_voip": "NONE",
    "host_number": "12003004000",
    "id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
    "inserted_at": "2021-08-13T04:08:44.762841Z",
    "notes": "Suspended due to carrier complaint.",
    "updated_at": "2021-08-13T04:08:44.762841Z"
  },
  "type": "number_client_suspension"
}

Response 403

application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
  "errors": [
    {
      "code": "access_denied.no_scope",
      "detail": "No scope available to user role",
      "params": {
        "action": "index",
        "level": "guest",
        "resource": "resource"
      },
      "sub_code": "none",
      "title": "Access Denied, no scope available"
    }
  ]
}

Response 404

application/json
HTTP/1.1 404
Content-Type: application/json
Content-Length: 314
{
  "errors": [
    {
      "code": "not_found",
      "detail": "The specified resource could not be found",
      "params": {
        "resource": {
          "id": "3fbb573a-6049-44a0-a12c-d3a1ffae0b69",
          "type": "user"
        }
      },
      "sub_code": "none",
      "title": "Not Found"
    }
  ]
}

Reference updated 2026-11-30 · Reconciled with OpenAPI 2026.11.23-p02 · View this chapter as Markdown (for AI assistants)