Baack
Browse the docs

Endpoints

  • CreatePOST/n/v1/telephone/

    Endpoint handling telephone numbers typically associated with an identity.

    Baack allocates the URN and returns it in the response.

    Request body: Telephone

    Responses

    201 Created
    returns TelephoneCREATE_SUCCESS
    400 Bad request
    returns ErrorREPRESENTATION_MISSING_REQUIRED_FIELD
  • ReadGET/n/v1/telephone/{urn}

    Endpoint handling telephone numbers typically associated with an identity.

    Notes

    • Telephone number values are not currently validated for a standard format like international dialling code.
    • As with other identity concepts creation will deduplicate existing representations and will return an existing object if the exact value match exists.

    Parameters

    urn (path, required)

    String representation of a Unique Resource Name. Typically a UUID with 36 characters.

    Responses

    200 OK
    returns TelephoneREAD_SUCCESS
    404 Not found
    returns ErrorNOT_FOUND
    curl -H "Authorization: Bearer $BAACK_API_TOKEN" \
      https://api.baack.co/n/v1/telephone/{urn}
  • UpdatePUT/n/v1/telephone/{urn}

    Endpoint handling telephone numbers typically associated with an identity.

    Parameters

    urn (path, required)

    String representation of a Unique Resource Name. Typically a UUID with 36 characters.

    Request body: Telephone

    Responses

    202
    returns TelephoneUPDATE_SUCCESS
    400 Bad request
    returns ErrorINVALID_REPRESENTATION
  • DeleteDELETE/n/v1/telephone/{urn}

    Endpoint handling telephone numbers typically associated with an identity.

    Parameters

    urn (path, required)

    String representation of a Unique Resource Name. Typically a UUID with 36 characters.

    Responses

    202
    DELETE_SUCCESS

Webhook

POSTyour destination URL

Subject: TELEPHONE

Webhook for events related to association of a telephone number with an identity.

Listen to telephone number events in order to trigger experiences like updating contact information for a customer or phone number verification.

Body: Webhook Event

Your response

200
Return 200 status to indicate that data was received successfully

Fields

Telephone fields
FieldTypeDescription
urnstring (uuid)
numberstring

Required on create.

.

identityIdentity

Required on create.

.

typestring

Optional.

urlstring (uri)

Used by: Identity